Professional Documents
Culture Documents
Carried out at
National Institute of Electronics & Information Technology (NIELIT)
U.P., India
Department of Information Technology
CERTIFICATE
ii
ACKNOWLEDGEMENT
The completion of this training work could have been possible with continued &
dedicated efforts & guidance of large number of faculty & staff members of the
institute .I acknowledge our gratitude to all of them. The acknowledgement
however will be incomplete without specific mention as follows
Furthermore I would also like to acknowledge with much appreciation the crucial
role of our HOD Prof. Mr. Shobhit Kumar for this encouragement & providing
all the facilities in the department.
Finally, I would like to say that I am indebted to my parents for everything that
they have done for me. All of this would have been impossible without their
constant support. And I also thank to God for being kind to me and driving me
through this journey.
BABITA
iv
Abstract
Over time new enhanced versions of Java have been released. The current version of
Java is Java 1.8 which is also known as Java 8.
Table of contents
Page no.
Cover page i
Certificate from department ii
Photo copy of the certificate iii
Acknowledgement iv
Abstract v
Table of contents vi
List of tables vii
List of figures
Chapter-1
Introduction to Java
With the invention of microprocessors, the world is scientifically developed with
sophisticated equipments, systems, and devices. Microprocessors are used in
computers, televisions, and fax machines. Even the hand-held devices such as
pagers, PDAs (Personal Digital Assistant), and cell phones make use of
microprocessors. All these electronic devices are helpful because of their
communication capabilities. With the increasing capabilities and decreasing cost of
information processing and networking technologies, the network is growing
rapidly for transmitting information through electronic systems.
Simple and easy to use - Java's creators tried to design it so code could be
written efficiently and easily.
1
The Java Platform
One thing that distinguished Java from some other languages is its ability to run
the same compiled code across multiple operating systems.In other languages, the
source code (code that is written by the programmer), is compiled by a compiler
into an executable file. This file is in machine language, and is intended for a
single operating system/processor combination, so the programmer would have to
re-compile the program seperately for each new operating system/processor
combination.Java is different in that it does not compile the code directly into
machine language code. Compilation creates bytecode out of the source code.
Bytecode generally looks something like this:
a7 f4 73 5a 1b 92 7d
In 2006 Sun started to make Java available under the GNU General Public
License (GPL). Oracle continues this project called OpenJDK.
Java programs are compiled by the Java compiler into bytecode. The Java
virtual machine interprets this bytecode and executes the Java program.
The JDK contains in addition the development tools necessary to create Java
programs. The JDK consists therefore of a Java compiler, the Java virtual
machine, and the Java class libraries.
2
HISTORYOF JAVA
Arthur Ban Hoff implemented the Java compiler in Java itself whereas
Gosling implemented it in C. The Java compiler, written in Java made the people
to accept Java as a full-featured language.
using Java technology in interactive set-top boxes, hand-held devices and
other consumer electronics products.
Sun released the first version 1.0 of Java in 1996. Java is an object-oriented
programming language which evolved from C++. It is also a high-level
programming language. The different forms of Java versions are discussed in the
next section.
History of Java
Year Java - Versions and Features
1990 Sun Microsystems started Stealth project supporting application of
computers in the consumer electronics market.
1991 The Green project started with the members of Stealth project such
as James Gosling, Patrick Naughton, and Mike Sheridan. A new
programming language, called Oak was created by Gosling.
1992 An intelligent remote control called StarSeven was delivered. The
Green Project was incorporated was incorporated under the name
FirstPerson.
1993 Mosaic Web browser was introduced in the world of Internet.
1994 HotJava Web browser was announced by Sun Microsystems.
1995 Oak was renamed as Java. Sun officially announced Java
technology.
1996 Sun released the first version 1.0 of Java. Core Language features
supporting: I/O facility, Utilities, Network Programming, User
Interface AWT, Applets, and Multithreading.
1997 Sun released JDK1.1 by including new features such as addition of
inner classes to the language and capabilities such as JavaBeans,
JDBC(Java Data Base Connectivity), and RMI (Remote Method
Invocation).
1998 Java 2 Platform, Standard Edition (J2SE)1.2, code named as
Playground, was released. It replaced JDK and distinguished the
base platform from j2ee (Java 2 Platform, Enterprose Edition) and
J2ME (Java 2Platform, Micro Edition). The key features include
Swing graphical API, Java IDL (Interface Definition Language) to
support CORBA interoperability. They also added Collections
framework to support various data structures. For the first time,
JVM was equipped with a JIT (Just-in-Time) compiler.
2000 J2SE 1.3, code named as Kestrel, was released with key features
such as JavaSound API to support audio operations (e.g., audio
playback and capture/recording, mixing, sequencing, and
synthesis), Java Naming and Directory Interface (JNDI), and Java
Platform Debugger Architecture (JPDA).
2002 H2SE 1.4, code named as Merlin, was released with key features
such as (a) image I/O API for manipulating images in formats like
JPEG and PNG, (b) integrated XML parser and XSLT processor
(JAXP), integrated security and cryptography extensions, (c) Java
Web Start supporting deployment of Java software applications
over the network.
2004 J2SE 5.0, code named as Tiger, was released with enhancement of
Java platform and inclusion of a number of significant new
language features such as Generics, Enhanced for Loop,
Autoboxing/Unboxing, Typesafe Enums, Varags, Static Import, and
Metadata supporting declarative style programming annotation of
source code.
2006 Java SE 6.0, code named as Mustang, was released with enhancement of
performance in Swing, JDBC 4.0 support, Java Compiler API, Upgrade of
JAXB to version 2.0, including integration of a StAX parser, support for
pluggable annotations, and many GUI improvements.
2008 Java SE 7.0, code named as Dolphin, with native support for XML
recognizing its foundation for Web services.
Table:1.1