Professional Documents
Culture Documents
Lecture 02
Lecture 02
nisal@uwu.ac.lk
Object Oriented Programming
• When you write a program using an Object Oriented
Programming Language you are creating a model of some part of
the real world, in your computer.
• The model is built up considering the objects that appear in the
problem domain.
Real world object Software model of the object
States Behaviours
Colour Driven
Model Braked
Price Horned
Manufactured Year Turned
Mileage Reversed
Content
• Evaluation of Java
• Features of Java
• Installing, Configuring & Implementing Java
• Java Development Kit (JDK)
• Java Virtual Machine (JVM)
• First program in Java
• Compiling & Executing a Java Program
Evaluation of Java
• James Gosling, Patrick Naughton, Chris Warth, Mike Sheridan, and
Ed Frank initiated the Java language project in June 1991.
• The objective was to develop a programming language which was
platform-independent and which could create embedded
software for consumer electronic devices like TVs, VCRs etc.
• It took 18 months to develop and had an initial name
as Oak which was renamed to Java in 1995.
• Java originally was developed by the team led by James Gosling at
Sun Microsystems (which has merged with the Oracle
Corporation) and released in 1995.
• JDK 1.0 released in January 23, 1996.
• Java SE 20 is a current most updated and stable release of Java.
Version Date
JDK1.0 January 23, 1996
Source : https://spectrum.ieee.org/
Installing, Configuring & Implementing Java
• Tools needed;
• JDK (Java Development Kit) : a software development
environment used for developing Java applications and applets.
It includes the Java Runtime Environment (JRE), an
interpreter/loader (Java), a compiler (javac), an archiver (jar), a
documentation generator (Javadoc) and other tools needed in
Java development.
• A text editor
First Program in Java
public class Hello
{
public static void main (String[] args)
{
System.out.print(“Hello World!”);
}
}
• To Execute :
java Hello