Lecture 1
Lecture 1
Oriented Programming
LECTURE ONE
Mahamudul Hasan
Senior Lecturer, Dept of CSE, EWU
BOOK’S NAME
Compiler creates
Phase 2 Compiler Disk bytecodes and stores
them on disk in a file
ending with .class.
Primary
Memory
Phase 3 Class Loader Class loader
reads .class files
containing
bytecodes from disk
and puts those
bytecodes in
Disk memory.
. ..
..
.
Primary
Memory
Phase 4 Bytecode Verifier Bytecode verifier
confirms that all
bytecodes are
valid and do not
violate Java’s
security
. ..
.. restrictions.
.
Primary
Memory Interpreter reads
Phase 5 Interpreter bytecodes and
translates them into a
language that the
computer can
understand, possibly
storing data values as
the program executes.
. ..
..
.
JAVA ENVIRONMENT
Development tools-part of java development kit
(JDK).
Classes and methods-part of Java Standard Library
(JSL), also known as Application Programming
Interface (API).
1. JDK:
Appletviewer ( for viewing applets)
Javac (Compiler)
Java (Interpreter)
Javap (Java disassembler)
Javadoc ( for creating HTML description)
Jdb (Java Debugger), etc
JAVA ENVIRONMENT
2. Application Package Interface (API)
Contains hundreds of classes and methods grouped into
several functional packages:
Language Support Package
Utility Packages
Input/Output Packages
Networking Packages
AWT Package
Applet Package
THE EVOLUTION OF JAVA
1. Java 1.0
2. Java 1.1 (Add new library, redefine applet handling and
reconfigured many features.)
3. Java 2 (Second generation). Version no:1.2 (Internal
version number of java library). Also known as J2SE
[ Java 2 Platform Standard Edition].
- Add swing, the collection framework, enhanced JVM etc.
4. J2SE 1.3
5. J2SE 1.4
6. J2SE 1.5 (J2SE5)
7. J2SE 1.6 (Java SE 6)
8. Java SE 7 (library version 1.7)
VERSIONS OF JAVA
Three versions of the Java Platform, targeted at different uses
Java Platform Micro Edition (Java ME)
Very small Java environment for smart phones, personal digital
assistant (PDA), etc
Subset of the standard Java libraries aimed at limited size and
processing power
Java Platform Standard Edition (Java SE)
The basic platform
Java SE can be used to develop client-side standalone applications or
applets.
Java Platform Enterprise Edition (Java EE)
For business applications, web services, mission-critical systems
Transaction processing, databases, distribution, replication