IntroTo JavaTechnology
IntroTo JavaTechnology
What is Java?
Java Platforms
Java Virtual Machine (JVM)
Java Development Kit (JDK)
Benefits and Features of Java
Java is Everywhere!
6
Network-centric
Designed for building applications for the Internet
Object-oriented
It incorporates object-oriented programming model
A Java Platform is the set of APIs, class libraries, and other programs used
in developing Java programs for specific applications
There are 3 Java Platform Editions
1. Java 2 Platform, Standard Edition (J2SE)
Core Java Platform targeting applications running on workstations
2. Java 2 Platform, Enterprise Edition (J2EE)
Component-based approach to developing distributed, multi-tier
enterprise applications
3. Java 2 Platform, Micro Edition (J2ME)
Targeted at small, stand-alone or connectable consumer and
embedded devices
8
JDK
JRE
MyProgram.java
Java API
Java Virtual Machine
Hardware - Based Platform
9
Source Code
public class HelloWorld {
public static void main(String args[ ]) {
System.out.println(Hello World!);
}
}
Compiler
Class File
Bytecodes
class HelloWorld {
public static void main(String args[ ]) {
System.out.println(Hello World!);
}
}
Java Program
Compiler
Interpreter
Interpreter
Hello
World!
Hello
World!
Win32
Solaris
Interpreter
Hello
World!
MacOS
11
Network-centric
architectures
Object-oriented
other
Robust
Multithreaded
threads simultaneously
Security
secure environment
Security levels and restrictions are highly configurable
12
14