Unit I: Java Evolution
Unit I: Java Evolution
History of Java
Java is a general purpose and object oriented programming language, which was
developed by Sun Microsystems, USA in 1991. It was originally called as Oak by
James Gosling, creator of Java. He was working with his team consisting of Patrick
Naughton, Chris Warth, Ed Frank, and Mike Sheridan. He designed Java mainly for
home electronic appliances such as Microwave ovens and TVs. It had a strong impact
and therefore their team was supported to develop a language that was simple,
portable, efficient, and reliable.
Oak was renamed as Java in 1995and was redesigned for developing internet
applications. As of seen today, Java is simple, robust, object oriented, distributed,
interpreted, secure, architecture neutral, portable, high performance, multi-threaded
and dynamic.
Java is full featured, general purpose programming language that is not only used for
web application development but also used in developing stand-alone applications on
platforms of servers, desktops, and mobile phones. Java is said to be the Programmers
language. It was used to develop the code to communicate with the spacecraft
launched in Mars.
The most appealing factor of Java is not only its applets but also its machine
independence. The slogan “Write once, Read anywhere” was effective. Though Java
is related to C and C++, it is not an upgraded version of C++. It has several features
influenced from C++.
Chronology
1991 – Sun Microsystems decided to develop special software that could be used to
manipulate consumer electronic devices. A team of Sun Microsystems programmers
headed by James Gosling was formed to undertake this task.
1991 – After exploring the possibility of using the most popular object – oriented
language C++, the team announced a new language named as “Oak”.
1992 – The team known as the Green Project demonstrated the application of their
new language to control a list of home appliances using a hand – held device with a
tiny touch sensitive screen.
1993 – The World Wide Web appeared on the Internet and transformed the text based
Internet to graphical rich environment. The Green Project team came up with the idea
of developing Web Applets using the new language that could run on all types of
computers connected to Internet.
1994 – The team developed a Web Browser called “HotJava” to locate and run applet
programs on Internet. HotJava demonstrated the power of new language, thus making
it instantly popular among the Internet users.
1995 – Oak was renamed Java, due to some legal snags. Java is just a name and it has
no Acronyms. Many companies including Netscape and Microsoft announced to the
development of Java.
1996 – Java not only emerged as the leader of Internet applications but also as
general-purpose object oriented programming language. Sun releases Java
development Kit 1.0
1997 – Sun releases Java Development Kit 1.1 (JDK 1.1)
1998 – Sun releases Java 2 with version 1.2 of the Software Development Kit (SDK
1.2)
1999 – Sun releases Java 2 platform, Standard Edition (J2SE) and Enterprise Edition
(J2EE)
2000 – J2SE with SDK 1.3 was released.
2002 – J2SE with SDK 1.4 was released.
2004 – J2SE with JDK 5.0 (instead of JDK 1.5) was released. This is known as J2SE
5.0
Features of Java
Although Java was modelled after C++ languages, it differs from C++ in many ways.
Java and C
Although Java was modelled after C languages, it differs from C in many ways.
Java is an Object Oriented Programming language whereas C is a procedure
oriented programming language
Java does not include the C unique statement keywords sizeof and typedef
Java does not contain the data types struct and union
Java does not define the type modifiers keywords auto, extern, register,
signed, and unsigned
Java does not support an explicit pointer type
Java does not have the pre-processor and therefore we cannot use #define,
#include, etc statements
Java requires that the functions with no arguments must be declared with the
empty parentheses and not with the void keyword as done in C
Java adds new operators such as instanceof and >>>
Java adds labelled break and continue statements
Java adds many features required for an object oriented programming
Java and Internet
Java is strongly with the Internet because of the fact that the first application program
written in Java was HotJava; a Web browser to run applet on Internet, Internet users
can use Java to create applet programs and run them locally using a “Java-enabled
browser” such as HotJava. They can also use Java – enabled browser to download an
applet located on a computer anywhere in the Internet and run it on his local
computer. In fact, Java applets have made the Internet a true extension of the storage
system of the local computer.
Internet users can also set up their Web sites containing Java applets that could be
used by other remote users of Internet. The ability of Java applets to hitch a ride on
the Information Superhighway has made Java a unique programming language for the
Internet. In fact, due to this, Java is popularly known as Internet language.
Web Browsers
Internet is a vast sea of information represented in many formats and stored on many
computers. A large portion of the Internet is organized as the World Wide Web which
uses hypertext. Web browsers are used to navigate through the information found on
the net. They allow us to retrieve the information spread across the Internet and
display it using the hypertext mark-up language (HTML).
Examples of Web browsers, among others, include:
1. HotJava – it is the Web Browser from Sun Microsystems that enables the
display of interactive content on the Web, using the Java language.
HotJava is written entirely in Java and demonstrates the capabilities of the
Java programming was first developed and ported to the Internet, no
browsers were available that could run Java applets. Although we can
view a Web page that includes Java applets with a regular browser, we
will not gain any of Java’s benefits. HotJava is currently available for the
SPARC/Solaris platform as well as Windows 95, Windows NT, and
Windows XP. This browser has nothing special to offer than what most of
the other web browsers offer. However, the main draw is that it provides
support for the language, thus making the Web more dynamic language.
When the Java language and interactive.
2. Netscape Navigator – it is from Netscape Communications Corporation, is
a general purpose browser that can run Java applets. With versions
available for Windows 95, NT, Solaris, and Apple Macintosh, Netscape
Navigator is one of the most widely used browsers today.
Netscape Navigator has many useful features such as visual display about
downloading process and indication of the number of bytes downloaded.
It also supports JavaScript, a scripting language used in HTML
documents.
3. Internet Explorer – It is another popular browser developed by Microsoft
for Windows 95, NT, and XP workstations. Both the Navigator and
Explorer use tool bars, icons, menus, and dialog boxes for easy
navigation. Explorer uses a just-in-time (JIT) compiler which greatly
increases the speed of execution.