Java Module 1 Chapter 2
Java Module 1 Chapter 2
Programming
Rani Dubey
Prepared by Asst. Prof., GIFT
Why Java is Important
Two reasons :
Trouble with C/C++ language is that they are not
portable and are not platform independent
languages.
Emergence of World Wide Web, which demanded
portable programs
Portability and security necessitated the
invention of Java
History
James Gosling - Sun Microsystems
Co founder – Vinod Khosla
Oak - Java,May 20, 1995, SunWorld
JDK Evolutions
JDK 1.0 (January 23, 1996)
JDK 1.1 (February 19, 1997)
J2SE 1.2 (December 8, 1998)
J2SE 1.3 (May 8, 2000)
J2SE 1.4 (February 6, 2002)
J2SE 5.0 (September 30, 2004)
Java SE 6 (December 11, 2006)
Java SE 7 (July 28, 2011)
Java SE 8
Cont..
Java Editions.
➢ J2SE(Java 2 Standard Edition) - to develop client-side
standalone applications or applets.
➢ J2ME(Java 2 Micro Edition ) - to develop applications for
mobile devices such as cell phones.
➢ J2EE(Java 2 Enterprise Edition ) - to develop server-side
applications such as Java servlets and Java ServerPages.
What is java?
A general-purpose object-oriented language.
Widespread acceptance.
➢ Though C++ and java supports Boolean data type, C++ takes any
nonzero value as true and zero as false. True and false in java are
predefined literals that are values for a boolean expression.
➢ Java has replaced the destructor function with a finalize() function.
➢ C++ supports exception handling that is similar to java's.
However, in C++ there is no requirement that a thrown exception
be caught.
Characteristics of Java
Java is simple Java is architecture-neutral
Java is object-oriented Java is portable
Java is distributed Java’s performance
Java is interpreted Java is multithreaded
Java is robust Java is dynamic
Java is secure
Java Environment
Java includes many development tools, classes and methods
Development tools are part of Java Development Kit (JDK) and
The classes and methods are part of Java Standard Library (JSL),
also known as Application Programming Interface (API).
JDK constitutes of tools like java compiler, java interpreter
and many.
API includes hundreds of classes and methods grouped into
several packages according to their functionality.
Java is architecture-neutral