SlideShare a Scribd company logo
Introduction to Java
Programming Language
By
Norazah Yusof
Software Engineering Department
F lt f C t S i d I f ti S tFaculty of Computer Science and Information Systems
1
OutlineOutline
The origin of Java.
The Java history.The Java history.
The capabilities of Java programming language.
The Java language specificationsThe Java language specifications
The Java API
The Java development toolsThe Java development tools
How does byte code makes Java a portable 
language?language?
2
Origin of Java
I 1991 J d l d b t l d b J
Origin of Java
In 1991, Java was developed by a team led by James 
Gosling and Patrick Naughton at Sun Microsystems.
Originally named Oak Gosling liked the look ofOriginally named Oak ‐ Gosling liked the look of 
an oak tree that was outside his window at Sun.
3
History of Java
Th h ll F i b dd d
History of Java
The challenge: For use in embedded consumer 
electronic appliances ‐ the cable TV switchboxes.
Different manufacturers may choose different centralDifferent manufacturers may choose different central 
processing units (CPUs).
The cable TV switchboxes devices do not have a lot of 
power or memory.
The language; 
Had to be small and generate very tight code.
Not be tied to any single architecture.
4
History of JavaHistory of Java
A two‐step Java translation process have been 
developed:
Programs written in Java were translated into an 
intermediate language, known the byte code.
Th th b t d ld b t l t d i t hiThen, the byte code would be translated into machine 
language.
5
History of Java
I 1994 J d t d l W b b
History of Java
In 1994, Java was used to develop a Web browser, 
named HotJava.
The browser able to download and run small JavaThe browser able to download and run small Java 
programs over the internet, known as the applets.
Capable to display animation and interact with the user.
In 1995, Netscape incorporated Java technology 
into its Netscape browser. 
Then, other Internet companies followed . . .
6
Java Capabilities
J i f ll f t d d l
Java Capabilities
Java is a full‐featured and general‐purpose 
programming language that is capable of 
developing a robust mission‐critical applications for:developing a robust mission critical applications for:
Desktops
Servers
Mobile devices
The Java programming language is a relatively high‐
level language, class‐based and object‐oriented.
7
Java CapabilitiesJava Capabilities
Java running on the desktop is called application.
Java running on the Internet is called appletsJava running on the Internet is called applets.
Java developed on the server‐side is called servlet.
8
Java Language SpecificationJava Language Specification
Defines the Java standard and the technical 
definition of the languagedefinition of the language.
includes the syntax and semantics of the language.
url:
java.sun.com/docs/books/jls
9
Application Program InterfaceApplication Program Interface
Java application program interface (API) contains 
the predefined classes and interfaces for developing 
Java programs.
In 1995, Java 1.0 was introduced.
With 211 classes and interfaces.
In December 1998, Java 2 platform was announced.
l h lApplies to current Java technology.
10
Java APIJava API
11
Java APIJava API
There are 3 editions of the Java API:
Java 2 standard edition (J2SE)Java 2 standard edition (J2SE) 
• Client‐side standalone applications or applets.
Java 2 Enterprise Edition (J2EE) p ( )
• Server‐side applications, such as Java servlets and 
JavaServer Pages.
Java 2 Micro Edition (J2ME)Java 2 Micro Edition (J2ME) 
• Mobile devices, such as cell phones or pda.
12
Demonstrate how to link to Java 
APIAPI
13
J2SE versions and JDKJ2SE versions and JDK
There are many versions of J2SE.
Sun releases each version of J2SE with a Java 
Development toolkit (JDK)Development toolkit (JDK).
JDK consists of a set of separate programs for 
developing and testing Java programsdeveloping and testing Java programs.
Each of which is invoked from a command line.
For J2SE 5 0 the Java development toolkit is calledFor J2SE 5.0, the Java development toolkit is called 
JDK 5 – formerly was known as JDK1.5.
The latest version is J2SE 6.
14
Java Development Tools
A software that provides an integrated development
Java Development Tools
A software that provides an integrated development 
environment (IDE) for rapidly developing Java programs.
Java development tools on the market:p
NetBeans by Sun (open source)
JBuilder by Borland
Eclipse by IBM (open source)
Other useful tools:
Code warrior by Metroworks
TextPad Editor
JCreator LE
Jedit
BlueJ
15
Byte‐Code and the 
i l hi ( )Java Virtual Machine (JVM)
The Java compiler translates Java programs into 
byte‐code.
Once compiled to byte‐code, a Java program can be used 
on any computer, making it very portable machine. 
The Java Virtual Machine (JVM) translates the byteThe Java Virtual Machine (JVM) translates the byte 
code into machine language.
16
PortabilityPortability
Portable means that a program may be writtenPortable means that a program may be written
on one type of computer and then run on a wide
variety of computers, with little or noy p
modification.
Java byte code runs on the JVM and not on any
ti l CPU th f il d Jparticular CPU; therefore, compiled Java
programs are highly portable.
JVMs exist on many platforms:JVMs exist on many platforms:
Windows
Macintosh
LinuxLinux
17
PortabilityPortability
Byte code
(.class)
Java Virtual
Java Virtual
Machine for Windows
Java Virtual
Machine for Unix
Java Virtual
M hi f Li
Java Virtual
M hi f M i t h
18
Machine for Linux Machine for Macintosh

More Related Content

PPTX
Android
PPTX
Java industrial 6 month training with kvch
PPTX
Build Trust in Your Build-to-Deployment Flow!
PDF
VishalBhoj-Resume (1)
PDF
JAVA AND ANDROID OS_PRESENTATION
ODP
Q4.11: Porting Android to new Platforms
PDF
Android is NOT just 'Java on Linux'
Android
Java industrial 6 month training with kvch
Build Trust in Your Build-to-Deployment Flow!
VishalBhoj-Resume (1)
JAVA AND ANDROID OS_PRESENTATION
Q4.11: Porting Android to new Platforms
Android is NOT just 'Java on Linux'

What's hot (18)

PDF
Android Beyond The Phone
PDF
Skype testing overview
PPT
Multi-Configuration support in MTJ
PDF
Haj 4344-java se 9 and the application server-1
PPTX
Session 1 beccse
PDF
Developing and-benchmarking-native-linux-applications-on-android
PDF
Lec 3 01_aug13
PPTX
Android session-1-sajib
PDF
Os Lattner
PPTX
Zeelogic android-training-2013
PPT
Andriod
PPTX
Multi-OS Engine Technology Overview
PPTX
Getting started with android programming
PPT
Great Cup od Java
PDF
Design and Concepts of Android Graphics
PPTX
J2EE Struts with Hibernate Framework
PPT
Enhancing and modifying_the_core_android_os
DOCX
Santhosh BE
Android Beyond The Phone
Skype testing overview
Multi-Configuration support in MTJ
Haj 4344-java se 9 and the application server-1
Session 1 beccse
Developing and-benchmarking-native-linux-applications-on-android
Lec 3 01_aug13
Android session-1-sajib
Os Lattner
Zeelogic android-training-2013
Andriod
Multi-OS Engine Technology Overview
Getting started with android programming
Great Cup od Java
Design and Concepts of Android Graphics
J2EE Struts with Hibernate Framework
Enhancing and modifying_the_core_android_os
Santhosh BE
Ad

Viewers also liked (11)

DOC
Vijay Sharma
PDF
Hendrick Linked In Resume September 2016
PDF
ACE - Flipper - Flyer and Syllabus
DOCX
Entorno power point
PPTX
1.8bryanformoso
PDF
Betting on Vegas
PDF
Dignity Health
PDF
Poster eridob 2016
PDF
Basic java tutorial
PPT
Java Basics
PPTX
Introduction to java
Vijay Sharma
Hendrick Linked In Resume September 2016
ACE - Flipper - Flyer and Syllabus
Entorno power point
1.8bryanformoso
Betting on Vegas
Dignity Health
Poster eridob 2016
Basic java tutorial
Java Basics
Introduction to java
Ad

Similar to Java primers passos (English) (20)

PPTX
JAVA PROGRAMJAVA PROGRJAVA PROGRJAVA.pptx
PDF
Introduction to Java Programming Language
PPTX
Introduction to Java in cs engineering .pptx
DOCX
Java Tutorial to Learn Java Programming
PPTX
Java programming Introduction | Java basic architecture
PDF
TechSearchWeb.pdf
PDF
Technology Tutorial.pdf
PPTX
1_Introduction to Java.pptx java programming
PDF
Lecture-01 _Java Introduction CS 441 Fast
PDF
TechSearchWeb Tutorials.pdf
PPTX
Introduction to java
PPTX
Java Lecture 1
PPTX
Java programming(unit 1)
PPT
Core java slides
PPTX
Presentation on Java Basic
PDF
Java application-development
PPTX
Chapter 1 java
PPTX
DIT 206 LECTURE 2 - Features of the Java Programming Language copy.pptx
PPSX
Dr. Rajeshree Khande :Intoduction to java
JAVA PROGRAMJAVA PROGRJAVA PROGRJAVA.pptx
Introduction to Java Programming Language
Introduction to Java in cs engineering .pptx
Java Tutorial to Learn Java Programming
Java programming Introduction | Java basic architecture
TechSearchWeb.pdf
Technology Tutorial.pdf
1_Introduction to Java.pptx java programming
Lecture-01 _Java Introduction CS 441 Fast
TechSearchWeb Tutorials.pdf
Introduction to java
Java Lecture 1
Java programming(unit 1)
Core java slides
Presentation on Java Basic
Java application-development
Chapter 1 java
DIT 206 LECTURE 2 - Features of the Java Programming Language copy.pptx
Dr. Rajeshree Khande :Intoduction to java

Recently uploaded (20)

PDF
Encapsulation theory and applications.pdf
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PPTX
A Presentation on Artificial Intelligence
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
Spectroscopy.pptx food analysis technology
PDF
Approach and Philosophy of On baking technology
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PDF
Spectral efficient network and resource selection model in 5G networks
PPT
Teaching material agriculture food technology
PPTX
1. Introduction to Computer Programming.pptx
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PPTX
Tartificialntelligence_presentation.pptx
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
Encapsulation theory and applications.pdf
20250228 LYD VKU AI Blended-Learning.pptx
A Presentation on Artificial Intelligence
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
“AI and Expert System Decision Support & Business Intelligence Systems”
MYSQL Presentation for SQL database connectivity
Mobile App Security Testing_ A Comprehensive Guide.pdf
Spectroscopy.pptx food analysis technology
Approach and Philosophy of On baking technology
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Assigned Numbers - 2025 - Bluetooth® Document
Spectral efficient network and resource selection model in 5G networks
Teaching material agriculture food technology
1. Introduction to Computer Programming.pptx
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Advanced methodologies resolving dimensionality complications for autism neur...
Tartificialntelligence_presentation.pptx
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Diabetes mellitus diagnosis method based random forest with bat algorithm

Java primers passos (English)

  • 1. Introduction to Java Programming Language By Norazah Yusof Software Engineering Department F lt f C t S i d I f ti S tFaculty of Computer Science and Information Systems 1
  • 2. OutlineOutline The origin of Java. The Java history.The Java history. The capabilities of Java programming language. The Java language specificationsThe Java language specifications The Java API The Java development toolsThe Java development tools How does byte code makes Java a portable  language?language? 2
  • 3. Origin of Java I 1991 J d l d b t l d b J Origin of Java In 1991, Java was developed by a team led by James  Gosling and Patrick Naughton at Sun Microsystems. Originally named Oak Gosling liked the look ofOriginally named Oak ‐ Gosling liked the look of  an oak tree that was outside his window at Sun. 3
  • 4. History of Java Th h ll F i b dd d History of Java The challenge: For use in embedded consumer  electronic appliances ‐ the cable TV switchboxes. Different manufacturers may choose different centralDifferent manufacturers may choose different central  processing units (CPUs). The cable TV switchboxes devices do not have a lot of  power or memory. The language;  Had to be small and generate very tight code. Not be tied to any single architecture. 4
  • 5. History of JavaHistory of Java A two‐step Java translation process have been  developed: Programs written in Java were translated into an  intermediate language, known the byte code. Th th b t d ld b t l t d i t hiThen, the byte code would be translated into machine  language. 5
  • 6. History of Java I 1994 J d t d l W b b History of Java In 1994, Java was used to develop a Web browser,  named HotJava. The browser able to download and run small JavaThe browser able to download and run small Java  programs over the internet, known as the applets. Capable to display animation and interact with the user. In 1995, Netscape incorporated Java technology  into its Netscape browser.  Then, other Internet companies followed . . . 6
  • 7. Java Capabilities J i f ll f t d d l Java Capabilities Java is a full‐featured and general‐purpose  programming language that is capable of  developing a robust mission‐critical applications for:developing a robust mission critical applications for: Desktops Servers Mobile devices The Java programming language is a relatively high‐ level language, class‐based and object‐oriented. 7
  • 8. Java CapabilitiesJava Capabilities Java running on the desktop is called application. Java running on the Internet is called appletsJava running on the Internet is called applets. Java developed on the server‐side is called servlet. 8
  • 9. Java Language SpecificationJava Language Specification Defines the Java standard and the technical  definition of the languagedefinition of the language. includes the syntax and semantics of the language. url: java.sun.com/docs/books/jls 9
  • 10. Application Program InterfaceApplication Program Interface Java application program interface (API) contains  the predefined classes and interfaces for developing  Java programs. In 1995, Java 1.0 was introduced. With 211 classes and interfaces. In December 1998, Java 2 platform was announced. l h lApplies to current Java technology. 10
  • 12. Java APIJava API There are 3 editions of the Java API: Java 2 standard edition (J2SE)Java 2 standard edition (J2SE)  • Client‐side standalone applications or applets. Java 2 Enterprise Edition (J2EE) p ( ) • Server‐side applications, such as Java servlets and  JavaServer Pages. Java 2 Micro Edition (J2ME)Java 2 Micro Edition (J2ME)  • Mobile devices, such as cell phones or pda. 12
  • 14. J2SE versions and JDKJ2SE versions and JDK There are many versions of J2SE. Sun releases each version of J2SE with a Java  Development toolkit (JDK)Development toolkit (JDK). JDK consists of a set of separate programs for  developing and testing Java programsdeveloping and testing Java programs. Each of which is invoked from a command line. For J2SE 5 0 the Java development toolkit is calledFor J2SE 5.0, the Java development toolkit is called  JDK 5 – formerly was known as JDK1.5. The latest version is J2SE 6. 14
  • 15. Java Development Tools A software that provides an integrated development Java Development Tools A software that provides an integrated development  environment (IDE) for rapidly developing Java programs. Java development tools on the market:p NetBeans by Sun (open source) JBuilder by Borland Eclipse by IBM (open source) Other useful tools: Code warrior by Metroworks TextPad Editor JCreator LE Jedit BlueJ 15
  • 16. Byte‐Code and the  i l hi ( )Java Virtual Machine (JVM) The Java compiler translates Java programs into  byte‐code. Once compiled to byte‐code, a Java program can be used  on any computer, making it very portable machine.  The Java Virtual Machine (JVM) translates the byteThe Java Virtual Machine (JVM) translates the byte  code into machine language. 16
  • 17. PortabilityPortability Portable means that a program may be writtenPortable means that a program may be written on one type of computer and then run on a wide variety of computers, with little or noy p modification. Java byte code runs on the JVM and not on any ti l CPU th f il d Jparticular CPU; therefore, compiled Java programs are highly portable. JVMs exist on many platforms:JVMs exist on many platforms: Windows Macintosh LinuxLinux 17
  • 18. PortabilityPortability Byte code (.class) Java Virtual Java Virtual Machine for Windows Java Virtual Machine for Unix Java Virtual M hi f Li Java Virtual M hi f M i t h 18 Machine for Linux Machine for Macintosh