SlideShare a Scribd company logo
2
Most read
3
Most read
16
Most read
Introduction to Java
   Programming Language

                   By
              Norazah Yusof
          Software Engineering Department
Faculty of Computer Science and I f
F   lt f C      t S i         d Information Systems
                                       ti S t

                                                      1
Outline


The origin of Java.
The Java history.
The Java history.
The capabilities of Java programming language.
The Java language specifications
The Java language specifications
The Java API
The Java development tools
The Java development tools
How does byte code makes Java a portable 
language?

                                                 2
Origin of Java

In 1991, Java was developed by a team led by James 
I 1991 J          d l      db t         l db J
Gosling and Patrick Naughton at Sun Microsystems.
   Originally named Oak ‐ Gosling liked the look of 
   Originally named Oak Gosling liked the look of
   an oak tree that was outside his window at Sun.




                                                       3
History of Java

The challenge: For use in embedded consumer 
Th h ll        F        i     b dd d
electronic appliances ‐ the cable TV switchboxes.
  Different manufacturers may choose different central 
  Different 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 Java


A two‐step Java translation process have been 
developed:
  Programs written in Java were translated into an 
  intermediate language, known the byte code.
  Then, the byte code would be translated into machine 
  Th    th b t     d       ld b t    l t di t       hi
  language.




                                                          5
History of Java

In 1994, Java was used to develop a Web browser, 
I 1994 J             dt d l         W bb
named HotJava.
  The browser able to download and run small Java 
  The 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

Java is a full‐featured and general‐purpose 
J    i f ll f t d d               l
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 Capabilities


Java running on the desktop is called application.
Java running on the Internet is called applets.
Java running on the Internet is called applets
Java developed on the server‐side is called servlet.




                                                       8
Java Language Specification


Defines the Java standard and the technical 
definition of the language.
definition of the language
  includes the syntax and semantics of the language.
  url:
      java.sun.com/docs/books/jls




                                                       9
Application 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.
  Applies to current Java technology.
     l                       h l




                                                        10
Java API




           11
Java 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 
             API



                                   13
J2SE 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 programs.
developing and testing Java programs
  Each of which is invoked from a command line.
For J2SE 5.0, the Java development toolkit is called 
For 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 
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 
                       Java Virtual Machine (JVM)
                             i    l    hi (     )


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 byte 
The Java Virtual Machine (JVM) translates the byte
code into machine language.




                                                           16
Portability


Portable means that a program may be written
on one type of computer and then run on a wide
variety of computers, with little or no
      y       p
modification.
Java byte code runs on the JVM and not on any
particular CPU therefore, compiled J
   ti l CPU; th f                  il d Java
programs are highly portable.
JVMs exist on many platforms:
 Windows
 Macintosh
 Linux


                                                 17
Portability

                            Byte code
                             (.class)




    Java Virtual
                                                Java Virtual
Machine for Windows
                                              Machine for Unix




               Java Virtual             Java Virtual
             Machine for Linux
             M hi f Li              Machine f M i t h
                                    M hi for Macintosh

                                                                 18

More Related Content

PDF
Introduction to Java
Professional Guru
 
PPTX
Introduction to java
Java Lover
 
PPTX
Core Java
NA
 
PDF
Learn Java with Dr. Rifat Shahriyar
Abir Mohammad
 
PPT
Core java slides
Abhilash Nair
 
PDF
Genesis and Overview of Java
Ravi_Kant_Sahu
 
PPT
Introduction to Java Programming, Basic Structure, variables Data type, input...
Mr. Akaash
 
PPTX
Java Programming
Elizabeth alexander
 
Introduction to Java
Professional Guru
 
Introduction to java
Java Lover
 
Core Java
NA
 
Learn Java with Dr. Rifat Shahriyar
Abir Mohammad
 
Core java slides
Abhilash Nair
 
Genesis and Overview of Java
Ravi_Kant_Sahu
 
Introduction to Java Programming, Basic Structure, variables Data type, input...
Mr. Akaash
 
Java Programming
Elizabeth alexander
 

What's hot (20)

PPTX
Introduction to java
Saba Ameer
 
DOCX
Introduction to java
jayc8586
 
PPTX
core java
Roushan Sinha
 
PPTX
Presentation on Core java
mahir jain
 
PPTX
Training on Core java | PPT Presentation | Shravan Sanidhya
Shravan Sanidhya
 
PDF
Basic Java Programming
Math-Circle
 
PPTX
Java programming course for beginners
Eduonix Learning Solutions
 
PPTX
Control Statements in Java
Niloy Saha
 
PPTX
Core Java Tutorials by Mahika Tutorials
Mahika Tutorials
 
PDF
JAVA PPT Part-1 BY ADI.pdf
Prof. Dr. K. Adisesha
 
PPTX
Java
Tony Nguyen
 
PDF
Java Tutorial | Java Programming Tutorial | Java Basics | Java Training | Edu...
Edureka!
 
PPTX
Features of java
WILLFREDJOSE W
 
PPTX
Core java complete ppt(note)
arvind pandey
 
PPTX
Introduction to java
Veerabadra Badra
 
PPTX
1 java programming- introduction
jyoti_lakhani
 
PPT
Java basic
Sonam Sharma
 
PDF
Introduction to Java Programming
Ravi Kant Sahu
 
PPTX
Basics of JAVA programming
Elizabeth Thomas
 
DOCX
JDK,JRE,JVM
Cognizant
 
Introduction to java
Saba Ameer
 
Introduction to java
jayc8586
 
core java
Roushan Sinha
 
Presentation on Core java
mahir jain
 
Training on Core java | PPT Presentation | Shravan Sanidhya
Shravan Sanidhya
 
Basic Java Programming
Math-Circle
 
Java programming course for beginners
Eduonix Learning Solutions
 
Control Statements in Java
Niloy Saha
 
Core Java Tutorials by Mahika Tutorials
Mahika Tutorials
 
JAVA PPT Part-1 BY ADI.pdf
Prof. Dr. K. Adisesha
 
Java Tutorial | Java Programming Tutorial | Java Basics | Java Training | Edu...
Edureka!
 
Features of java
WILLFREDJOSE W
 
Core java complete ppt(note)
arvind pandey
 
Introduction to java
Veerabadra Badra
 
1 java programming- introduction
jyoti_lakhani
 
Java basic
Sonam Sharma
 
Introduction to Java Programming
Ravi Kant Sahu
 
Basics of JAVA programming
Elizabeth Thomas
 
JDK,JRE,JVM
Cognizant
 
Ad

Similar to Introduction to Java Programming Language (20)

PDF
Java primers passos (English)
rroca1999
 
DOCX
JAVA First Day
Sher Singh Bardhan
 
PPT
Java
kavirishi
 
PPTX
The Java Story
David Parsons
 
PPT
Core Java Slides
Vinit Vyas
 
PPTX
Introduction to java by priti sajja
Priti Srinivas Sajja
 
PPTX
1. Java Project Guidance for engineering
vyshukodumuri
 
PPTX
Java Lecture 1
Qualys
 
PDF
What is-java
Shahid Rasheed
 
PPT
Chapter 1 introduction to java technology
sshhzap
 
PPTX
Java (Part 2) unit 1
Dr. SURBHI SAROHA
 
PPT
Java & J2EE Struts with Hibernate Framework
Mohit Belwal
 
DOCX
meta title java.docx
UDAYAKUMAR39686
 
PPT
J2ee strutswithhibernate-140121221332-phpapp01
Jay Palit
 
PPT
1.Intro JAVA.ppt ( Basics of Java Programming)
BhawnaSaini45
 
PDF
Core Java-1 (1).pdf
HaskellKohler1234
 
PPTX
Java Programming Tutorials Basic to Advanced 1
JALALUDHEENVK1
 
PPTX
Why Java
Kiki Ahmadi
 
PPTX
1_Introduction to Java.pptx java programming
amitraj53904
 
PDF
Java Basic.pdf
TechSearchWeb
 
Java primers passos (English)
rroca1999
 
JAVA First Day
Sher Singh Bardhan
 
Java
kavirishi
 
The Java Story
David Parsons
 
Core Java Slides
Vinit Vyas
 
Introduction to java by priti sajja
Priti Srinivas Sajja
 
1. Java Project Guidance for engineering
vyshukodumuri
 
Java Lecture 1
Qualys
 
What is-java
Shahid Rasheed
 
Chapter 1 introduction to java technology
sshhzap
 
Java (Part 2) unit 1
Dr. SURBHI SAROHA
 
Java & J2EE Struts with Hibernate Framework
Mohit Belwal
 
meta title java.docx
UDAYAKUMAR39686
 
J2ee strutswithhibernate-140121221332-phpapp01
Jay Palit
 
1.Intro JAVA.ppt ( Basics of Java Programming)
BhawnaSaini45
 
Core Java-1 (1).pdf
HaskellKohler1234
 
Java Programming Tutorials Basic to Advanced 1
JALALUDHEENVK1
 
Why Java
Kiki Ahmadi
 
1_Introduction to Java.pptx java programming
amitraj53904
 
Java Basic.pdf
TechSearchWeb
 
Ad

Recently uploaded (20)

PPTX
How to Manage Leads in Odoo 18 CRM - Odoo Slides
Celine George
 
PPTX
Five Point Someone – Chetan Bhagat | Book Summary & Analysis by Bhupesh Kushwaha
Bhupesh Kushwaha
 
PPTX
Information Texts_Infographic on Forgetting Curve.pptx
Tata Sevilla
 
PPTX
Dakar Framework Education For All- 2000(Act)
santoshmohalik1
 
PPTX
An introduction to Prepositions for beginners.pptx
drsiddhantnagine
 
PPTX
Care of patients with elImination deviation.pptx
AneetaSharma15
 
PPTX
PREVENTIVE PEDIATRIC. pptx
AneetaSharma15
 
PDF
PG-BPSDMP 2 TAHUN 2025PG-BPSDMP 2 TAHUN 2025.pdf
AshifaRamadhani
 
DOCX
Action Plan_ARAL PROGRAM_ STAND ALONE SHS.docx
Levenmartlacuna1
 
PPTX
CDH. pptx
AneetaSharma15
 
PDF
Study Material and notes for Women Empowerment
ComputerScienceSACWC
 
PDF
1.Natural-Resources-and-Their-Use.ppt pdf /8th class social science Exploring...
Sandeep Swamy
 
PPTX
Artificial-Intelligence-in-Drug-Discovery by R D Jawarkar.pptx
Rahul Jawarkar
 
PPTX
Odoo 18 Sales_ Managing Quotation Validity
Celine George
 
PPTX
Trends in pediatric nursing .pptx
AneetaSharma15
 
PPT
Python Programming Unit II Control Statements.ppt
CUO VEERANAN VEERANAN
 
PDF
Health-The-Ultimate-Treasure (1).pdf/8th class science curiosity /samyans edu...
Sandeep Swamy
 
PDF
BÀI TẬP TEST BỔ TRỢ THEO TỪNG CHỦ ĐỀ CỦA TỪNG UNIT KÈM BÀI TẬP NGHE - TIẾNG A...
Nguyen Thanh Tu Collection
 
PPTX
TEF & EA Bsc Nursing 5th sem.....BBBpptx
AneetaSharma15
 
PDF
Types of Literary Text: Poetry and Prose
kaelandreabibit
 
How to Manage Leads in Odoo 18 CRM - Odoo Slides
Celine George
 
Five Point Someone – Chetan Bhagat | Book Summary & Analysis by Bhupesh Kushwaha
Bhupesh Kushwaha
 
Information Texts_Infographic on Forgetting Curve.pptx
Tata Sevilla
 
Dakar Framework Education For All- 2000(Act)
santoshmohalik1
 
An introduction to Prepositions for beginners.pptx
drsiddhantnagine
 
Care of patients with elImination deviation.pptx
AneetaSharma15
 
PREVENTIVE PEDIATRIC. pptx
AneetaSharma15
 
PG-BPSDMP 2 TAHUN 2025PG-BPSDMP 2 TAHUN 2025.pdf
AshifaRamadhani
 
Action Plan_ARAL PROGRAM_ STAND ALONE SHS.docx
Levenmartlacuna1
 
CDH. pptx
AneetaSharma15
 
Study Material and notes for Women Empowerment
ComputerScienceSACWC
 
1.Natural-Resources-and-Their-Use.ppt pdf /8th class social science Exploring...
Sandeep Swamy
 
Artificial-Intelligence-in-Drug-Discovery by R D Jawarkar.pptx
Rahul Jawarkar
 
Odoo 18 Sales_ Managing Quotation Validity
Celine George
 
Trends in pediatric nursing .pptx
AneetaSharma15
 
Python Programming Unit II Control Statements.ppt
CUO VEERANAN VEERANAN
 
Health-The-Ultimate-Treasure (1).pdf/8th class science curiosity /samyans edu...
Sandeep Swamy
 
BÀI TẬP TEST BỔ TRỢ THEO TỪNG CHỦ ĐỀ CỦA TỪNG UNIT KÈM BÀI TẬP NGHE - TIẾNG A...
Nguyen Thanh Tu Collection
 
TEF & EA Bsc Nursing 5th sem.....BBBpptx
AneetaSharma15
 
Types of Literary Text: Poetry and Prose
kaelandreabibit
 

Introduction to Java Programming Language