SlideShare uma empresa Scribd logo
1 de 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

Mais conteúdo relacionado

Destaque

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
 

Destaque (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
 

Semelhante a 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
 

Semelhante a 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
 

Último

Data governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationData governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationKnoldus Inc.
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxLoriGlavin3
 
Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Hiroshi SHIBATA
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfMounikaPolabathina
 
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better StrongerModern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better Strongerpanagenda
 
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
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
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
 
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesThousandEyes
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxLoriGlavin3
 
Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Farhan Tariq
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch TuesdayIvanti
 
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality AssuranceInflectra
 
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentEmixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentPim van der Noll
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demoHarshalMandlekar2
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsRavi Sanghani
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxLoriGlavin3
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersNicole Novielli
 
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfSo einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfpanagenda
 
Scale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterScale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterMydbops
 

Último (20)

Data governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationData governance with Unity Catalog Presentation
Data governance with Unity Catalog Presentation
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
 
Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdf
 
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better StrongerModern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
 
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
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
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.
 
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
 
Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch Tuesday
 
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
 
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentEmixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demo
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and Insights
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software Developers
 
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfSo einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
 
Scale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterScale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL Router
 

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

Notas do Editor

  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.