Lesson01 Introduction To Java
Lesson01 Introduction To Java
By:
Adnan Amin
Lecturer / Software Programmer
www.geoamins.com
Overview
Short History about Java
Introduction to Java
Bytecode
2
Short History about Java
Originally, Sun planned to use C++ for its home
appliance software, but they soon realized that
C++ was less than ideal because it wasn't
portable enough and it relied too heavily on
hard-to-maintain things called pointers.
4
Introduction to Java
Developed by James Gosling at Sun
microsystem.
5
Bytecode
Java programs are translated into an
intermediate language called bytecode.
Bytecode is the same no matter which computer
6
The java Environment
Runs
on
Windows PC
Running JVM
Macintosh
Running JVM
7
Installing Java
The Java Development Kit (JDK) is a collection of
software available at no charge from Sun
Microsystem, Inc.
The v1.3 , v1.4, v1.5, v1.6 etc download is
8
Step 1. download jdk 6 for windows
Double click on executable file.
9
Step 2: Custom Setup
Add/Remove the utitlity programs features you
want installed. Then click next…
12
Sample Java Program
User defined class name of the java program
class Hello
{
}
running. The main means that this is the main method where the JVM starts runnin
will start
13
Step 1: Try it yourself (Start a notepad)
Click start All Programs Accessories
Notepad
18
Important hints
The file must be named Hello.java to match
the class name containing the main method.
19
References
Material drawn from [Lewis01, Kjell00,
Mancoridis01]
20
Installing net beans-6