SlideShare ist ein Scribd-Unternehmen logo
1 von 65
Starting Out with Java:  Early  Objects  Third Edition by Tony Gaddis Chapter 1: Introduction to Computers and Java
Chapter Topics ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Java History ,[object Object],[object Object],[object Object],[object Object]
Introduction ,[object Object],[object Object],[object Object]
Java Applications and Applets ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Why Program? ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Why Program? ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Why Program? ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Computer Systems: Hardware ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Computer Systems: Hardware
Computer Systems: Hardware Central Processing Unit Instruction (input) Result (output) Arithmetic Logic Unit Control Unit CPU
Computer Systems: Hardware Central Processing Unit ,[object Object],Fetch The CPU’s control unit fetches, from main memory, the next instruction in the sequence of program instructions. Decode The instruction is encoded in the form of a number. The control unit decodes the instruction and generates an electronic signal. Execute The signal is routed to the appropriate component of the computer (such as the ALU, a disk drive, or some other device). The signal causes the component to perform an operation.
Computer Systems: Hardware Main Memory ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Computer Systems: Hardware Main Memory ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Computer Systems: Hardware Main Memory A section of memory is called a  byte . A section of two or four bytes is often called a  word . Main memory can be visualized as a column or row of cells. 0x000 0x001 0x003 0x002 0x004 0x005 0x006 0x007 A byte is made up of 8  bits . 1 0 1 0 1 0 1 0
Computer Systems: Hardware Secondary Storage Devices ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Computer Systems: Hardware Input Devices ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Computer Systems: Hardware Output Devices ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Computer Systems: Software ,[object Object],[object Object],[object Object],[object Object]
Computer Systems: Software Operating Systems ,[object Object],[object Object],[object Object],[object Object]
Computer Systems: Software Operating Systems ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Computer Systems: Software Operating Systems ,[object Object],[object Object],[object Object]
Computer Systems: Software Single User Systems ,[object Object],[object Object],[object Object],[object Object]
Computer Systems: Software Multi-User Systems ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Computer Systems: Software Application Software ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Programming Languages ,[object Object],[object Object],[object Object],[object Object]
Programming Languages ,[object Object],[object Object],[object Object],[object Object],[object Object]
Programming Languages ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Programming Languages ,[object Object],[object Object],[object Object],[object Object]
Programming Languages ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Programming Languages Common Language Elements ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Programming Languages Sample Program ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Programming Languages Sample Program ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Programming Languages ,[object Object],[object Object]
Programming Languages Lines vs Statements ,[object Object],[object Object],[object Object],[object Object],[object Object]
Programming Languages Variables ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Programming Languages Variables ,[object Object],0x000 0x001 0x002 0x003 0x004 0x005 0x006 0x007
Programming Languages Variables The Java Virtual Machine (JVM) actually decides where the value will be placed in memory. 0x000 0x001 0x002 0x003 0x004 0x005 0x006 0x007 72 Assume that the this variable declaration has been made. int length = 72; The variable length is a symbolic name for the memory location 0x003.
The Compiler and the Java Virtual Machine ,[object Object],[object Object],[object Object],[object Object],[object Object]
The Compiler and the Java Virtual Machine ,[object Object],[object Object],[object Object],[object Object]
The Compiler and the Java Virtual Machine ,[object Object],[object Object],[object Object]
The Compiler and the Java Virtual Machine ,[object Object],[object Object],[object Object],[object Object],[object Object]
Program Development Process Text editor Source code ( .java ) Saves Java statements Java compiler Is read by Byte code ( .class ) Produces Java Virtual Machine Is interpreted by Program Execution Results in
Portability ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Portability ,[object Object],[object Object]
Portability Java Virtual Machine for Windows Byte code (.class) Java Virtual Machine for Linux Java Virtual Machine for Mac Java Virtual Machine for Unix
Java Versions ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Compiling a Java Program ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
The Programming Process ,[object Object],[object Object],[object Object],[object Object]
The Programming Process ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Software Engineering ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Software Engineering ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Software Engineering ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Procedural Programming ,[object Object],[object Object],[object Object],[object Object]
Procedural Programming Procedure A Data Element Procedure B
Procedural Programming ,[object Object],[object Object],[object Object]
Object-Oriented Programming ,[object Object],[object Object],[object Object],[object Object]
Object-Oriented Programming Object Attributes (data) Methods (behaviors / procedures)
Object-Oriented Programming Data Hiding ,[object Object],[object Object],[object Object],[object Object]
Object-Oriented Programming Code Reusability ,[object Object],[object Object],[object Object],[object Object],[object Object]
Classes and Objects ,[object Object],[object Object],[object Object],[object Object],[object Object]
Classes and Objects ,[object Object],[object Object],[object Object]
Classes and Objects Insect class The  Insect  class defines the attributes and methods that will exist in all objects that are an instances of the Insect class. housefly object The housefly object is an instance of the Insect class. mosquito object The mosquito object is an instance of the Insect class.
Inheritance ,[object Object],[object Object],[object Object],[object Object],[object Object]
Inheritance Vehicle represents all of the generic attributes and methods of a vehicle. Vehicle Vehicle is the parent class. Truck Car is-a relationship Car and Truck are child classes of Vehicle. Car and Truck are Specialized versions of a Vehicle.

Weitere ähnliche Inhalte

Was ist angesagt?

Computer hardware and software
Computer hardware and softwareComputer hardware and software
Computer hardware and softwaresheikhparvez4
 
ITBIS105 6
ITBIS105 6ITBIS105 6
ITBIS105 6Suad 00
 
Chapter 1: Intro to Funds of Programming
Chapter 1: Intro to Funds of ProgrammingChapter 1: Intro to Funds of Programming
Chapter 1: Intro to Funds of Programmingricsanmae
 
System Programming- Unit I
System Programming- Unit ISystem Programming- Unit I
System Programming- Unit ISaranya1702
 
Lecture 3 - Processors, Memory and I/O devices
Lecture 3 - Processors, Memory and I/O devicesLecture 3 - Processors, Memory and I/O devices
Lecture 3 - Processors, Memory and I/O devicesMd. Imran Hossain Showrov
 
computer language with full detail
computer language with full detail computer language with full detail
computer language with full detail sonykhan3
 
Introduction to computer programming
Introduction to computer programmingIntroduction to computer programming
Introduction to computer programmingNSU-Biliran Campus
 
My cool new Slideshow!
My cool new Slideshow!My cool new Slideshow!
My cool new Slideshow!manishamorya
 
9781111530532 ppt ch01
9781111530532 ppt ch019781111530532 ppt ch01
9781111530532 ppt ch01Terry Yoast
 
Embedded System Tools ppt
Embedded System Tools  pptEmbedded System Tools  ppt
Embedded System Tools pptHalai Hansika
 

Was ist angesagt? (19)

Computer hardware and software
Computer hardware and softwareComputer hardware and software
Computer hardware and software
 
ITBIS105 6
ITBIS105 6ITBIS105 6
ITBIS105 6
 
Assembly language
Assembly languageAssembly language
Assembly language
 
Savitch Ch 01
Savitch Ch 01Savitch Ch 01
Savitch Ch 01
 
Software Concepts Notes
Software Concepts NotesSoftware Concepts Notes
Software Concepts Notes
 
Chapter 1: Intro to Funds of Programming
Chapter 1: Intro to Funds of ProgrammingChapter 1: Intro to Funds of Programming
Chapter 1: Intro to Funds of Programming
 
System Programming- Unit I
System Programming- Unit ISystem Programming- Unit I
System Programming- Unit I
 
Lecture 3 - Processors, Memory and I/O devices
Lecture 3 - Processors, Memory and I/O devicesLecture 3 - Processors, Memory and I/O devices
Lecture 3 - Processors, Memory and I/O devices
 
Assembly language
Assembly languageAssembly language
Assembly language
 
computer language with full detail
computer language with full detail computer language with full detail
computer language with full detail
 
Computer Systems Hardware
Computer Systems   HardwareComputer Systems   Hardware
Computer Systems Hardware
 
Introduction to computer programming
Introduction to computer programmingIntroduction to computer programming
Introduction to computer programming
 
Perfect Papers Software
Perfect Papers   SoftwarePerfect Papers   Software
Perfect Papers Software
 
Input output device
Input output deviceInput output device
Input output device
 
My cool new Slideshow!
My cool new Slideshow!My cool new Slideshow!
My cool new Slideshow!
 
9781111530532 ppt ch01
9781111530532 ppt ch019781111530532 ppt ch01
9781111530532 ppt ch01
 
C with lab
C with labC with lab
C with lab
 
Embedded System Tools ppt
Embedded System Tools  pptEmbedded System Tools  ppt
Embedded System Tools ppt
 
Software
SoftwareSoftware
Software
 

Andere mochten auch

Hassan_md5_1.doc.doc
Hassan_md5_1.doc.docHassan_md5_1.doc.doc
Hassan_md5_1.doc.docbutest
 
Windows 8 energy efficiency areas of focus
Windows 8 energy efficiency areas of focusWindows 8 energy efficiency areas of focus
Windows 8 energy efficiency areas of focusGurus Online
 
Areas of Focus
Areas of FocusAreas of Focus
Areas of Focusvfarrimond
 
Presentation Of Focus Areas
Presentation Of Focus AreasPresentation Of Focus Areas
Presentation Of Focus Areasaegee.statutory
 
GeekUp Sheffield 2
GeekUp Sheffield 2GeekUp Sheffield 2
GeekUp Sheffield 2Jag Goraya
 
Type of terrestrial ecosystem
Type of terrestrial ecosystemType of terrestrial ecosystem
Type of terrestrial ecosystemMiguel Lopez
 
New Generations and the Areas of Focus
New Generations and the Areas of FocusNew Generations and the Areas of Focus
New Generations and the Areas of FocusRotary International
 
Discover Your Career Interest Areas!
Discover Your Career Interest Areas!Discover Your Career Interest Areas!
Discover Your Career Interest Areas!Dr. Mary Askew
 
4 Focus Areas for Total Agile Transformation
4 Focus Areas for Total Agile Transformation4 Focus Areas for Total Agile Transformation
4 Focus Areas for Total Agile TransformationNaveen Nanjundappa
 
Get your focus right in social business- Texavi presentation
Get your focus right in social business- Texavi presentationGet your focus right in social business- Texavi presentation
Get your focus right in social business- Texavi presentationTexavi Innovative Solutions
 
Presentation on the Provisions of CAG's (DPC) Act, 1971
Presentation on the Provisions of CAG's (DPC) Act, 1971Presentation on the Provisions of CAG's (DPC) Act, 1971
Presentation on the Provisions of CAG's (DPC) Act, 1971Life of A Public Auditor
 
Top 5 People Development Focus Areas for Corporates in 2014
Top 5 People Development Focus Areas for Corporates in 2014Top 5 People Development Focus Areas for Corporates in 2014
Top 5 People Development Focus Areas for Corporates in 2014WhiteLight Consulting Pvt Ltd
 
Different Types Of Poetry
Different Types Of PoetryDifferent Types Of Poetry
Different Types Of Poetrytocco1am
 
Artificial Intelligence: How Enterprises Can Crush It With Apache Spark: Keyn...
Artificial Intelligence: How Enterprises Can Crush It With Apache Spark: Keyn...Artificial Intelligence: How Enterprises Can Crush It With Apache Spark: Keyn...
Artificial Intelligence: How Enterprises Can Crush It With Apache Spark: Keyn...Spark Summit
 

Andere mochten auch (20)

Hassan_md5_1.doc.doc
Hassan_md5_1.doc.docHassan_md5_1.doc.doc
Hassan_md5_1.doc.doc
 
Ai Presentacion
Ai PresentacionAi Presentacion
Ai Presentacion
 
Artificial Intelligence
Artificial IntelligenceArtificial Intelligence
Artificial Intelligence
 
Windows 8 energy efficiency areas of focus
Windows 8 energy efficiency areas of focusWindows 8 energy efficiency areas of focus
Windows 8 energy efficiency areas of focus
 
Korzinka 00002101
Korzinka 00002101Korzinka 00002101
Korzinka 00002101
 
Categories & Tags
Categories & TagsCategories & Tags
Categories & Tags
 
Areas of Focus
Areas of FocusAreas of Focus
Areas of Focus
 
Presentation Of Focus Areas
Presentation Of Focus AreasPresentation Of Focus Areas
Presentation Of Focus Areas
 
GeekUp Sheffield 2
GeekUp Sheffield 2GeekUp Sheffield 2
GeekUp Sheffield 2
 
Type of terrestrial ecosystem
Type of terrestrial ecosystemType of terrestrial ecosystem
Type of terrestrial ecosystem
 
New Generations and the Areas of Focus
New Generations and the Areas of FocusNew Generations and the Areas of Focus
New Generations and the Areas of Focus
 
Discover Your Career Interest Areas!
Discover Your Career Interest Areas!Discover Your Career Interest Areas!
Discover Your Career Interest Areas!
 
4 Focus Areas for Total Agile Transformation
4 Focus Areas for Total Agile Transformation4 Focus Areas for Total Agile Transformation
4 Focus Areas for Total Agile Transformation
 
Get your focus right in social business- Texavi presentation
Get your focus right in social business- Texavi presentationGet your focus right in social business- Texavi presentation
Get your focus right in social business- Texavi presentation
 
Presentation on the Provisions of CAG's (DPC) Act, 1971
Presentation on the Provisions of CAG's (DPC) Act, 1971Presentation on the Provisions of CAG's (DPC) Act, 1971
Presentation on the Provisions of CAG's (DPC) Act, 1971
 
Top 5 People Development Focus Areas for Corporates in 2014
Top 5 People Development Focus Areas for Corporates in 2014Top 5 People Development Focus Areas for Corporates in 2014
Top 5 People Development Focus Areas for Corporates in 2014
 
Different Types Of Poetry
Different Types Of PoetryDifferent Types Of Poetry
Different Types Of Poetry
 
TYPES OF POETRY
TYPES OF POETRYTYPES OF POETRY
TYPES OF POETRY
 
Artificial Intelligence: How Enterprises Can Crush It With Apache Spark: Keyn...
Artificial Intelligence: How Enterprises Can Crush It With Apache Spark: Keyn...Artificial Intelligence: How Enterprises Can Crush It With Apache Spark: Keyn...
Artificial Intelligence: How Enterprises Can Crush It With Apache Spark: Keyn...
 
Focus groups - An introduction
Focus groups - An introductionFocus groups - An introduction
Focus groups - An introduction
 

Ähnlich wie CISY 105 Chapter 1

Computer and programing basics.pptx
Computer and programing basics.pptxComputer and programing basics.pptx
Computer and programing basics.pptxgaafergoda
 
An overview of computers and programming languages
An overview of computers and programming languages An overview of computers and programming languages
An overview of computers and programming languages Ahmad Idrees
 
System programming note
System programming noteSystem programming note
System programming noteSANTOSH RATH
 
Power Point Lesson 04
Power Point  Lesson 04Power Point  Lesson 04
Power Point Lesson 04Nasir Jumani
 
Inroduction System Software -features Types
Inroduction System Software -features TypesInroduction System Software -features Types
Inroduction System Software -features TypesSwapnaliPawar27
 
Last module pc_software
Last module pc_softwareLast module pc_software
Last module pc_softwareAnirban Mandal
 
PPS UNIT 1- R18.docx
PPS UNIT 1- R18.docxPPS UNIT 1- R18.docx
PPS UNIT 1- R18.docxUzma1102
 
AERO_PROGRAMMING_FOR_PROBLEM_SOLVING_LECTURE_NOTES.pdf
AERO_PROGRAMMING_FOR_PROBLEM_SOLVING_LECTURE_NOTES.pdfAERO_PROGRAMMING_FOR_PROBLEM_SOLVING_LECTURE_NOTES.pdf
AERO_PROGRAMMING_FOR_PROBLEM_SOLVING_LECTURE_NOTES.pdfssuserb3a23b
 
Introduction.pptx
Introduction.pptxIntroduction.pptx
Introduction.pptxSUDHAKAR S
 
Programming for Problem Solving
Programming for Problem SolvingProgramming for Problem Solving
Programming for Problem SolvingSukhendra Singh
 
Computer software and operating system
Computer software and operating systemComputer software and operating system
Computer software and operating systemsonykhan3
 
Computer system
Computer systemComputer system
Computer systemRajThakuri
 
Lec 01 basic concepts
Lec 01 basic conceptsLec 01 basic concepts
Lec 01 basic conceptsAbdul Khan
 
Big Java Chapter 1
Big Java Chapter 1Big Java Chapter 1
Big Java Chapter 1Maria Joslin
 
Lesson 1 - Introduction to Computer Programming.pptx
Lesson 1 - Introduction to Computer Programming.pptxLesson 1 - Introduction to Computer Programming.pptx
Lesson 1 - Introduction to Computer Programming.pptxNeil Mutia
 
C PROGRAMING AND PC
C PROGRAMING AND PCC PROGRAMING AND PC
C PROGRAMING AND PC4044uday
 
Computer
ComputerComputer
ComputerCAFE91
 

Ähnlich wie CISY 105 Chapter 1 (20)

Computer and programing basics.pptx
Computer and programing basics.pptxComputer and programing basics.pptx
Computer and programing basics.pptx
 
An overview of computers and programming languages
An overview of computers and programming languages An overview of computers and programming languages
An overview of computers and programming languages
 
System programming note
System programming noteSystem programming note
System programming note
 
Power Point Lesson 04
Power Point  Lesson 04Power Point  Lesson 04
Power Point Lesson 04
 
Inroduction System Software -features Types
Inroduction System Software -features TypesInroduction System Software -features Types
Inroduction System Software -features Types
 
Last module pc_software
Last module pc_softwareLast module pc_software
Last module pc_software
 
PPS UNIT 1- R18.docx
PPS UNIT 1- R18.docxPPS UNIT 1- R18.docx
PPS UNIT 1- R18.docx
 
AERO_PROGRAMMING_FOR_PROBLEM_SOLVING_LECTURE_NOTES.pdf
AERO_PROGRAMMING_FOR_PROBLEM_SOLVING_LECTURE_NOTES.pdfAERO_PROGRAMMING_FOR_PROBLEM_SOLVING_LECTURE_NOTES.pdf
AERO_PROGRAMMING_FOR_PROBLEM_SOLVING_LECTURE_NOTES.pdf
 
Introduction.pptx
Introduction.pptxIntroduction.pptx
Introduction.pptx
 
L2 ch1
L2  ch1L2  ch1
L2 ch1
 
C program full materials.pdf
C program  full materials.pdfC program  full materials.pdf
C program full materials.pdf
 
Programming for Problem Solving
Programming for Problem SolvingProgramming for Problem Solving
Programming for Problem Solving
 
Computer software and operating system
Computer software and operating systemComputer software and operating system
Computer software and operating system
 
Computer system
Computer systemComputer system
Computer system
 
Lec 01 basic concepts
Lec 01 basic conceptsLec 01 basic concepts
Lec 01 basic concepts
 
Big Java Chapter 1
Big Java Chapter 1Big Java Chapter 1
Big Java Chapter 1
 
Introduction to computer
Introduction to computerIntroduction to computer
Introduction to computer
 
Lesson 1 - Introduction to Computer Programming.pptx
Lesson 1 - Introduction to Computer Programming.pptxLesson 1 - Introduction to Computer Programming.pptx
Lesson 1 - Introduction to Computer Programming.pptx
 
C PROGRAMING AND PC
C PROGRAMING AND PCC PROGRAMING AND PC
C PROGRAMING AND PC
 
Computer
ComputerComputer
Computer
 

CISY 105 Chapter 1

  • 1. Starting Out with Java: Early Objects Third Edition by Tony Gaddis Chapter 1: Introduction to Computers and Java
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 11. Computer Systems: Hardware Central Processing Unit Instruction (input) Result (output) Arithmetic Logic Unit Control Unit CPU
  • 12.
  • 13.
  • 14.
  • 15. Computer Systems: Hardware Main Memory A section of memory is called a byte . A section of two or four bytes is often called a word . Main memory can be visualized as a column or row of cells. 0x000 0x001 0x003 0x002 0x004 0x005 0x006 0x007 A byte is made up of 8 bits . 1 0 1 0 1 0 1 0
  • 16.
  • 17.
  • 18.
  • 19.
  • 20.
  • 21.
  • 22.
  • 23.
  • 24.
  • 25.
  • 26.
  • 27.
  • 28.
  • 29.
  • 30.
  • 31.
  • 32.
  • 33.
  • 34.
  • 35.
  • 36.
  • 37.
  • 38. Programming Languages Variables The Java Virtual Machine (JVM) actually decides where the value will be placed in memory. 0x000 0x001 0x002 0x003 0x004 0x005 0x006 0x007 72 Assume that the this variable declaration has been made. int length = 72; The variable length is a symbolic name for the memory location 0x003.
  • 39.
  • 40.
  • 41.
  • 42.
  • 43. Program Development Process Text editor Source code ( .java ) Saves Java statements Java compiler Is read by Byte code ( .class ) Produces Java Virtual Machine Is interpreted by Program Execution Results in
  • 44.
  • 45.
  • 46. Portability Java Virtual Machine for Windows Byte code (.class) Java Virtual Machine for Linux Java Virtual Machine for Mac Java Virtual Machine for Unix
  • 47.
  • 48.
  • 49.
  • 50.
  • 51.
  • 52.
  • 53.
  • 54.
  • 55. Procedural Programming Procedure A Data Element Procedure B
  • 56.
  • 57.
  • 58. Object-Oriented Programming Object Attributes (data) Methods (behaviors / procedures)
  • 59.
  • 60.
  • 61.
  • 62.
  • 63. Classes and Objects Insect class The Insect class defines the attributes and methods that will exist in all objects that are an instances of the Insect class. housefly object The housefly object is an instance of the Insect class. mosquito object The mosquito object is an instance of the Insect class.
  • 64.
  • 65. Inheritance Vehicle represents all of the generic attributes and methods of a vehicle. Vehicle Vehicle is the parent class. Truck Car is-a relationship Car and Truck are child classes of Vehicle. Car and Truck are Specialized versions of a Vehicle.