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

PPTX
Introduction to java
PDF
Introduction to Java
PDF
Learn Java with Dr. Rifat Shahriyar
PPT
Introduction to Java Programming, Basic Structure, variables Data type, input...
PPTX
Core Java
 
PPTX
Java Programming
ODP
Basic of Java
PPTX
Introduction to java
Introduction to java
Introduction to Java
Learn Java with Dr. Rifat Shahriyar
Introduction to Java Programming, Basic Structure, variables Data type, input...
Core Java
 
Java Programming
Basic of Java
Introduction to java

What's hot (20)

PPTX
Core java complete ppt(note)
PDF
Introduction to java (revised)
PDF
JAVA PPT Part-1 BY ADI.pdf
PPTX
Basic Concepts of OOPs (Object Oriented Programming in Java)
PPTX
Java programming course for beginners
PDF
Basic Java Programming
PPTX
Introduction to java
PPTX
Training on Core java | PPT Presentation | Shravan Sanidhya
PPTX
Introduction to JAVA
PPTX
core java
PDF
PPTX
Basics of JAVA programming
PDF
Java variable types
PDF
Java exception handling ppt
PPT
Exception Handling in JAVA
PPSX
Introduction to java
PPTX
Java Virtual Machine (JVM), Difference JDK, JRE & JVM
PPTX
Java Introduction
PPSX
Introduction to Java
Core java complete ppt(note)
Introduction to java (revised)
JAVA PPT Part-1 BY ADI.pdf
Basic Concepts of OOPs (Object Oriented Programming in Java)
Java programming course for beginners
Basic Java Programming
Introduction to java
Training on Core java | PPT Presentation | Shravan Sanidhya
Introduction to JAVA
core java
Basics of JAVA programming
Java variable types
Java exception handling ppt
Exception Handling in JAVA
Introduction to java
Java Virtual Machine (JVM), Difference JDK, JRE & JVM
Java Introduction
Introduction to Java
Ad

Viewers also liked (9)

PPT
Java basic
PPT
Java tutorial PPT
PPTX
Introduction to java
PPT
Java Servlets
PDF
Introduction to Java Programming
PPT
Java Servlets
PPT
Core java concepts
PPTX
Presentation on Core java
PPT
Core java slides
Java basic
Java tutorial PPT
Introduction to java
Java Servlets
Introduction to Java Programming
Java Servlets
Core java concepts
Presentation on Core java
Core java slides
Ad

Similar to Introduction to Java Programming Language (20)

PDF
Java primers passos (English)
DOCX
JAVA First Day
PPT
Java
PPTX
The Java Story
PPT
Core Java Slides
PPTX
Introduction to java by priti sajja
PPTX
1. Java Project Guidance for engineering
PPTX
Java Lecture 1
PDF
What is-java
PPT
Chapter 1 introduction to java technology
PPTX
Java (Part 2) unit 1
PPT
Java & J2EE Struts with Hibernate Framework
DOCX
meta title java.docx
PPT
J2ee strutswithhibernate-140121221332-phpapp01
PPT
1.Intro JAVA.ppt ( Basics of Java Programming)
PDF
Core Java-1 (1).pdf
PPTX
Java Programming Tutorials Basic to Advanced 1
PPTX
Why Java
PPTX
1_Introduction to Java.pptx java programming
PDF
Java Basic.pdf
Java primers passos (English)
JAVA First Day
Java
The Java Story
Core Java Slides
Introduction to java by priti sajja
1. Java Project Guidance for engineering
Java Lecture 1
What is-java
Chapter 1 introduction to java technology
Java (Part 2) unit 1
Java & J2EE Struts with Hibernate Framework
meta title java.docx
J2ee strutswithhibernate-140121221332-phpapp01
1.Intro JAVA.ppt ( Basics of Java Programming)
Core Java-1 (1).pdf
Java Programming Tutorials Basic to Advanced 1
Why Java
1_Introduction to Java.pptx java programming
Java Basic.pdf

Recently uploaded (20)

PPTX
Pharma ospi slides which help in ospi learning
PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PDF
Insiders guide to clinical Medicine.pdf
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PDF
Mark Klimek Lecture Notes_240423 revision books _173037.pdf
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
01-Introduction-to-Information-Management.pdf
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
Anesthesia in Laparoscopic Surgery in India
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PPTX
Week 4 Term 3 Study Techniques revisited.pptx
PPTX
PPH.pptx obstetrics and gynecology in nursing
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
Pharma ospi slides which help in ospi learning
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
Final Presentation General Medicine 03-08-2024.pptx
Abdominal Access Techniques with Prof. Dr. R K Mishra
Insiders guide to clinical Medicine.pdf
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
O5-L3 Freight Transport Ops (International) V1.pdf
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
102 student loan defaulters named and shamed – Is someone you know on the list?
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
Module 4: Burden of Disease Tutorial Slides S2 2025
Mark Klimek Lecture Notes_240423 revision books _173037.pdf
2.FourierTransform-ShortQuestionswithAnswers.pdf
01-Introduction-to-Information-Management.pdf
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
Anesthesia in Laparoscopic Surgery in India
Renaissance Architecture: A Journey from Faith to Humanism
Week 4 Term 3 Study Techniques revisited.pptx
PPH.pptx obstetrics and gynecology in nursing
Pharmacology of Heart Failure /Pharmacotherapy of CHF

Introduction to Java Programming Language