1 Introduction_to_Java
1 Introduction_to_Java
❑ What is Java?
❑ The Java Story
❑ Java Technology
❑ Features of Java
❑ Java Requirements
❑ Java Development Environment
❑ Applets and Applications
❑ Java Program Cycle
WHAT IS JAVA?
Java
is a high-level programming language developed at Sun Microsystems by James
Gosling
can be used to write applets (small applications running inside other applications
hence the diminutive suffix 'let') but is not the only language that can produce applets
THE JAVA STORY
Java was developed at Sun Microsystems, Inc. (Sun) by James Gosling.
The language needed to be small, fast, reliable, and portable
(hardware independent).
With the goals it had achieved (smallness, speed, reliability,
portability), Java was discovered to be ideal for web pages.
Java can also be used to write stand-alone applications.
FEATURES OF JAVA
Object-Oriented
Portable and Platform-Independent
Dynamically Linked
Multithreaded
Garbage Collected
JAVA DEVELOPMENT
ENVIRONMENT
Java Development Kit (JDK) directories
j2sdk1.4.0
Application
stand-alone program that does not need a browser to run
JAVA PROGRAM CYCLE
Create source code (.java file)
Compile source code according to JVM to produce byte code (.class
file)
Execute byte code using using an interpreter