SlideShare une entreprise Scribd logo
1  sur  17
Chapter 1 Introduction to
Computers, Programs, and Java




   Liang, Introduction to Java Programming, Eighth Edition, (c) 2011 Pearson Education, Inc. All
                                   rights reserved. 0132130807
                                                                                                   1
What is a Computer?

                                                              Bus



   Storage                                                     Communication                       Input            Output
                    Memory                  CPU                   Devices                         Devices           Devices
   Devices
e.g., Disk, CD,                                                  e.g., Modem,                e.g., Keyboard,      e.g., Monitor,
   and Tape                                                        and NIC                        Mouse               Printer




                  Liang, Introduction to Java Programming, Eighth Edition, (c) 2011 Pearson Education, Inc. All
                                                  rights reserved. 0132130807
                                                                                                                         6
How Data is Stored?
   Memory address         Memory content


                .           .
                .           .
                .           .
              2000     01001010      Encoding for character ‘J’
              2001     01100001      Encoding for character ‘a’
              2002     01110110      Encoding for character ‘v’
              2003     01100001      Encoding for character ‘a’
              2004     00000011      Encoding for number 3




Liang, Introduction to Java Programming, Eighth Edition, (c) 2011 Pearson Education, Inc. All
                                rights reserved. 0132130807
                                                                                                7
What is a Computer?

                                                              Bus



   Storage                                                     Communication                       Input            Output
                    Memory                  CPU                   Devices                         Devices           Devices
   Devices
e.g., Disk, CD,                                                  e.g., Modem,                e.g., Keyboard,      e.g., Monitor,
   and Tape                                                        and NIC                        Mouse               Printer




                  Liang, Introduction to Java Programming, Eighth Edition, (c) 2011 Pearson Education, Inc. All
                                                  rights reserved. 0132130807
                                                                                                                         8
Programs &Programming
          Languages
Machine Language 1101101010011010

Assembly Language                              Add(R1, R2)

High-Level Language                                   SalesTax = Amt * .06;

                                                      Print Student-Date




     Liang, Introduction to Java Programming, Eighth Edition, (c) 2011 Pearson Education, Inc. All
                                     rights reserved. 0132130807
                                                                                                     9
Programs &Programming
          Languages
Machine Language 1101101010011010

Assembly Language                              Add(R1, R2)

High-Level Language                                   SalesTax = Amt * .06;

                                                      Print Student-Date




     Liang, Introduction to Java Programming, Eighth Edition, (c) 2011 Pearson Education, Inc. All
                                     rights reserved. 0132130807
                                                                                                     10
Programs &Programming
          Languages
Machine Language 1101101010011010

High-Level Language                                   SalesTax = Amt * .06;

                                                      Print Student-Date




     Liang, Introduction to Java Programming, Eighth Edition, (c) 2011 Pearson Education, Inc. All
                                     rights reserved. 0132130807
                                                                                                     11
Operating Systems

                                    User



                        Application Programs



                          Operating System



                                 Hardware




Liang, Introduction to Java Programming, Eighth Edition, (c) 2011 Pearson Education, Inc. All
                                rights reserved. 0132130807
                                                                                                12
Why Java?
Developed      by Sun Microsystems (now Oracle)
Java   is a general purpose programming language.
  Platform        independent
        Byte    Code
        Java   Virtual Machine
          Interpreted

  Object     Oriented
Java   is the Internet programming language
Java   is an Application development language
           Liang, Introduction to Java Programming, Eighth Edition, (c) 2011 Pearson Education, Inc. All
                                           rights reserved. 0132130807
                                                                                                           13
Companion
Website          Characteristics of Java
  Java Is Simple
  Java Is Object-Oriented
  Java Is Distributed
  Java Is Interpreted
  Java Is Robust
  Java Is Secure
  Java Is Architecture-Neutral
  Java Is Portable
  Java's Performance
  Java Is Multithreaded
  Java Is Dynamic
     www.cs.armstrong.edu/liang/intro8e/JavaCharacteristics.pdf
              Liang, Introduction to Java Programming, Eighth Edition, (c) 2011 Pearson Education, Inc. All
                                              rights reserved. 0132130807
                                                                                                              14
JDK Editions
 Java   Standard Edition (J2SE)
  – J2SE can be used to develop client-side standalone
    applications or applets.
 Java   Enterprise Edition (J2EE)
  – J2EE can be used to develop server-side applications such as
    Java servlets and Java ServerPages.
 Java   Micro Edition (J2ME).
  – J2ME can be used to develop applications for mobile devices
    such as cell phones.
This book uses J2SE to introduce Java programming.

           Liang, Introduction to Java Programming, Eighth Edition, (c) 2011 Pearson Education, Inc. All
                                           rights reserved. 0132130807
                                                                                                           15
Popular Java IDEs
 Notepad
  – Javac         -- the Java compiler
      MyProgram.java                  -> javac -> MyProgram.class
  – Java --- the Java Virtual Machine
     java MyProgram --- executes you program
 Textpad
 NetBeans        Open Source by Sun
 Eclipse   Open Source by IBM



        Liang, Introduction to Java Programming, Eighth Edition, (c) 2011 Pearson Education, Inc. All
                                        rights reserved. 0132130807
                                                                                                        16
Assignment
 Createaccounts for the Book’s online sites
 (p2 of Syllabus)
  – Videos
  – Text book site
 Download  JDK 7u w/ NetBeans
 Download Textpad v5.4.2
 See Blackboard



      Liang, Introduction to Java Programming, Eighth Edition, (c) 2011 Pearson Education, Inc. All
                                      rights reserved. 0132130807
                                                                                                      17

Contenu connexe

En vedette

bai giang java co ban - java cơ bản - bai 1
bai giang java co ban - java cơ bản - bai 1bai giang java co ban - java cơ bản - bai 1
bai giang java co ban - java cơ bản - bai 1ifis
 
9781285852744 ppt ch02
9781285852744 ppt ch029781285852744 ppt ch02
9781285852744 ppt ch02Terry Yoast
 
Introduction to Java Programming Language
Introduction to Java Programming LanguageIntroduction to Java Programming Language
Introduction to Java Programming Languagejaimefrozr
 
Exception handling
Exception handlingException handling
Exception handlingRaja Sekhar
 
String handling session 5
String handling session 5String handling session 5
String handling session 5Raja Sekhar
 

En vedette (10)

bai giang java co ban - java cơ bản - bai 1
bai giang java co ban - java cơ bản - bai 1bai giang java co ban - java cơ bản - bai 1
bai giang java co ban - java cơ bản - bai 1
 
01slide
01slide01slide
01slide
 
9781285852744 ppt ch02
9781285852744 ppt ch029781285852744 ppt ch02
9781285852744 ppt ch02
 
05slide
05slide05slide
05slide
 
07slide
07slide07slide
07slide
 
13slide graphics
13slide graphics13slide graphics
13slide graphics
 
10slide
10slide10slide
10slide
 
Introduction to Java Programming Language
Introduction to Java Programming LanguageIntroduction to Java Programming Language
Introduction to Java Programming Language
 
Exception handling
Exception handlingException handling
Exception handling
 
String handling session 5
String handling session 5String handling session 5
String handling session 5
 

Similaire à kg0000931 Chapter 1 introduction to computers, programs part ia

CSE215_Module_01_Introduction.ppt
CSE215_Module_01_Introduction.pptCSE215_Module_01_Introduction.ppt
CSE215_Module_01_Introduction.pptRashedurRahman18
 
Java™ (OOP) - Chapter 1: "Introduction to Computers, Programs, and Java"
Java™ (OOP) - Chapter 1: "Introduction to Computers, Programs, and Java"Java™ (OOP) - Chapter 1: "Introduction to Computers, Programs, and Java"
Java™ (OOP) - Chapter 1: "Introduction to Computers, Programs, and Java"Gouda Mando
 
microemulsions microemulsions microemulsions microemulsions
microemulsions microemulsions microemulsions microemulsionsmicroemulsions microemulsions microemulsions microemulsions
microemulsions microemulsions microemulsions microemulsionsAhmadHashlamon
 
Introduction to Computers, Programs, and Java
Introduction to Computers, Programs, and JavaIntroduction to Computers, Programs, and Java
Introduction to Computers, Programs, and Javanaimanighat
 
Java Semimar Slide (Cetpa)
Java Semimar Slide (Cetpa)Java Semimar Slide (Cetpa)
Java Semimar Slide (Cetpa)Pratima Parida
 
Java Semimar Slide (Cetpa)
Java Semimar Slide (Cetpa)Java Semimar Slide (Cetpa)
Java Semimar Slide (Cetpa)Pratima Parida
 
java training institute in Dange chowk pune
java training institute in Dange chowk punejava training institute in Dange chowk pune
java training institute in Dange chowk puneCNC WEB WORLD
 
Java Programming (M&M)
Java Programming (M&M)Java Programming (M&M)
Java Programming (M&M)mafffffe19
 
Cr java concept by vikas jagtap
Cr java  concept by vikas jagtapCr java  concept by vikas jagtap
Cr java concept by vikas jagtapVikas Jagtap
 
Java & J2EE Struts with Hibernate Framework
Java & J2EE Struts with Hibernate FrameworkJava & J2EE Struts with Hibernate Framework
Java & J2EE Struts with Hibernate FrameworkMohit Belwal
 
Unit 1 of java part 1 basic introduction akr
Unit 1 of java part 1 basic introduction akrUnit 1 of java part 1 basic introduction akr
Unit 1 of java part 1 basic introduction akrAKR Education
 

Similaire à kg0000931 Chapter 1 introduction to computers, programs part ia (20)

CSE215_Module_01_Introduction.ppt
CSE215_Module_01_Introduction.pptCSE215_Module_01_Introduction.ppt
CSE215_Module_01_Introduction.ppt
 
Java™ (OOP) - Chapter 1: "Introduction to Computers, Programs, and Java"
Java™ (OOP) - Chapter 1: "Introduction to Computers, Programs, and Java"Java™ (OOP) - Chapter 1: "Introduction to Computers, Programs, and Java"
Java™ (OOP) - Chapter 1: "Introduction to Computers, Programs, and Java"
 
microemulsions microemulsions microemulsions microemulsions
microemulsions microemulsions microemulsions microemulsionsmicroemulsions microemulsions microemulsions microemulsions
microemulsions microemulsions microemulsions microemulsions
 
Introduction to Computers, Programs, and Java
Introduction to Computers, Programs, and JavaIntroduction to Computers, Programs, and Java
Introduction to Computers, Programs, and Java
 
01slide
01slide01slide
01slide
 
JavaYDL1
JavaYDL1JavaYDL1
JavaYDL1
 
Java Notes .pdf
Java Notes .pdfJava Notes .pdf
Java Notes .pdf
 
Java Semimar Slide (Cetpa)
Java Semimar Slide (Cetpa)Java Semimar Slide (Cetpa)
Java Semimar Slide (Cetpa)
 
Java Semimar Slide (Cetpa)
Java Semimar Slide (Cetpa)Java Semimar Slide (Cetpa)
Java Semimar Slide (Cetpa)
 
Ch2
Ch2Ch2
Ch2
 
basic of Java
basic of Javabasic of Java
basic of Java
 
java training institute in Dange chowk pune
java training institute in Dange chowk punejava training institute in Dange chowk pune
java training institute in Dange chowk pune
 
50120140507001
5012014050700150120140507001
50120140507001
 
50120140507001 2
50120140507001 250120140507001 2
50120140507001 2
 
130700548484460000
130700548484460000130700548484460000
130700548484460000
 
Java Programming (M&M)
Java Programming (M&M)Java Programming (M&M)
Java Programming (M&M)
 
Cr java concept by vikas jagtap
Cr java  concept by vikas jagtapCr java  concept by vikas jagtap
Cr java concept by vikas jagtap
 
python.pptx
python.pptxpython.pptx
python.pptx
 
Java & J2EE Struts with Hibernate Framework
Java & J2EE Struts with Hibernate FrameworkJava & J2EE Struts with Hibernate Framework
Java & J2EE Struts with Hibernate Framework
 
Unit 1 of java part 1 basic introduction akr
Unit 1 of java part 1 basic introduction akrUnit 1 of java part 1 basic introduction akr
Unit 1 of java part 1 basic introduction akr
 

Dernier

DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningLars Bell
 
unit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxunit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxBkGupta21
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxLoriGlavin3
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersRaghuram Pandurangan
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxLoriGlavin3
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfLoriGlavin3
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESSALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESmohitsingh558521
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 

Dernier (20)

DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine Tuning
 
unit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxunit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptx
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptx
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information Developers
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdf
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESSALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 

kg0000931 Chapter 1 introduction to computers, programs part ia

  • 1. Chapter 1 Introduction to Computers, Programs, and Java Liang, Introduction to Java Programming, Eighth Edition, (c) 2011 Pearson Education, Inc. All rights reserved. 0132130807 1
  • 2.
  • 3.
  • 4.
  • 5.
  • 6. What is a Computer? Bus Storage Communication Input Output Memory CPU Devices Devices Devices Devices e.g., Disk, CD, e.g., Modem, e.g., Keyboard, e.g., Monitor, and Tape and NIC Mouse Printer Liang, Introduction to Java Programming, Eighth Edition, (c) 2011 Pearson Education, Inc. All rights reserved. 0132130807 6
  • 7. How Data is Stored? Memory address Memory content . . . . . . 2000 01001010 Encoding for character ‘J’ 2001 01100001 Encoding for character ‘a’ 2002 01110110 Encoding for character ‘v’ 2003 01100001 Encoding for character ‘a’ 2004 00000011 Encoding for number 3 Liang, Introduction to Java Programming, Eighth Edition, (c) 2011 Pearson Education, Inc. All rights reserved. 0132130807 7
  • 8. What is a Computer? Bus Storage Communication Input Output Memory CPU Devices Devices Devices Devices e.g., Disk, CD, e.g., Modem, e.g., Keyboard, e.g., Monitor, and Tape and NIC Mouse Printer Liang, Introduction to Java Programming, Eighth Edition, (c) 2011 Pearson Education, Inc. All rights reserved. 0132130807 8
  • 9. Programs &Programming Languages Machine Language 1101101010011010 Assembly Language Add(R1, R2) High-Level Language SalesTax = Amt * .06; Print Student-Date Liang, Introduction to Java Programming, Eighth Edition, (c) 2011 Pearson Education, Inc. All rights reserved. 0132130807 9
  • 10. Programs &Programming Languages Machine Language 1101101010011010 Assembly Language Add(R1, R2) High-Level Language SalesTax = Amt * .06; Print Student-Date Liang, Introduction to Java Programming, Eighth Edition, (c) 2011 Pearson Education, Inc. All rights reserved. 0132130807 10
  • 11. Programs &Programming Languages Machine Language 1101101010011010 High-Level Language SalesTax = Amt * .06; Print Student-Date Liang, Introduction to Java Programming, Eighth Edition, (c) 2011 Pearson Education, Inc. All rights reserved. 0132130807 11
  • 12. Operating Systems User Application Programs Operating System Hardware Liang, Introduction to Java Programming, Eighth Edition, (c) 2011 Pearson Education, Inc. All rights reserved. 0132130807 12
  • 13. Why Java? Developed by Sun Microsystems (now Oracle) Java is a general purpose programming language. Platform independent Byte Code Java Virtual Machine Interpreted Object Oriented Java is the Internet programming language Java is an Application development language Liang, Introduction to Java Programming, Eighth Edition, (c) 2011 Pearson Education, Inc. All rights reserved. 0132130807 13
  • 14. Companion Website Characteristics of Java  Java Is Simple  Java Is Object-Oriented  Java Is Distributed  Java Is Interpreted  Java Is Robust  Java Is Secure  Java Is Architecture-Neutral  Java Is Portable  Java's Performance  Java Is Multithreaded  Java Is Dynamic www.cs.armstrong.edu/liang/intro8e/JavaCharacteristics.pdf Liang, Introduction to Java Programming, Eighth Edition, (c) 2011 Pearson Education, Inc. All rights reserved. 0132130807 14
  • 15. JDK Editions  Java Standard Edition (J2SE) – J2SE can be used to develop client-side standalone applications or applets.  Java Enterprise Edition (J2EE) – J2EE can be used to develop server-side applications such as Java servlets and Java ServerPages.  Java Micro Edition (J2ME). – J2ME can be used to develop applications for mobile devices such as cell phones. This book uses J2SE to introduce Java programming. Liang, Introduction to Java Programming, Eighth Edition, (c) 2011 Pearson Education, Inc. All rights reserved. 0132130807 15
  • 16. Popular Java IDEs  Notepad – Javac -- the Java compiler  MyProgram.java -> javac -> MyProgram.class – Java --- the Java Virtual Machine java MyProgram --- executes you program  Textpad  NetBeans Open Source by Sun  Eclipse Open Source by IBM Liang, Introduction to Java Programming, Eighth Edition, (c) 2011 Pearson Education, Inc. All rights reserved. 0132130807 16
  • 17. Assignment  Createaccounts for the Book’s online sites (p2 of Syllabus) – Videos – Text book site  Download JDK 7u w/ NetBeans  Download Textpad v5.4.2  See Blackboard Liang, Introduction to Java Programming, Eighth Edition, (c) 2011 Pearson Education, Inc. All rights reserved. 0132130807 17

Notes de l'éditeur

  1. Data of various kinds, such as numbers, characters, and strings, are encoded as a series of bits (zeros and ones). Computers use zeros and ones because digital devices have two stable states, which are referred to as zero and one by convention. The programmers need not to be concerned about the encoding and decoding of data, which is performed automatically by the system based on the encoding scheme. The encoding scheme varies. For example, character ‘J’ is represented by 01001010 in one byte. A small number such as three can be stored in a single byte. If computer needs to store a large number that cannot fit into a single byte, it uses a number of adjacent bytes. No two data can share or split a same byte. A byte is the minimum storage unit.
  2. Computer programs, known as software, are instructions to the computer.You tell a computer what to do through programs. Without programs, a computer is an empty machine. Computers do not understand human languages, so you need to use computer languages to communicate with them. Programs are written using programming languages.
  3. Computer programs, known as software, are instructions to the computer.You tell a computer what to do through programs. Without programs, a computer is an empty machine. Computers do not understand human languages, so you need to use computer languages to communicate with them. Programs are written using programming languages.
  4. Computer programs, known as software, are instructions to the computer.You tell a computer what to do through programs. Without programs, a computer is an empty machine. Computers do not understand human languages, so you need to use computer languages to communicate with them. Programs are written using programming languages.