Project of DBMS
Project of DBMS
2/20/17 09:58:44 1
AM
History of Java
• Java history is interesting to know. The history of java starts from Green
Team. Java team members (also known asGreen Team), initiated a
revolutionary task to develop a language for digital devices such as set-top
boxes, televisions etc.
• For the green team members, it was an advance concept at that time. But, it
was suited for internet programming. Later, Java technology as incorporated
by Netscape.
• Currently, Java is used in internet programming, mobile devices, games, e-
business solutions etc. There are given the major points that describes the
history of java
2/20/17 09:58:44 2
AM
James Gosling
2/20/17 09:58:44 3
AM
Why Oak name for java language?
• 1) James Gosling, Mike Sheridan, and Patrick Naughton , John initiated the
Java language project in June 1991. The small team of sun engineers
called Green Team.
• 2) Originally designed for small, embedded systems in electronic appliances
like set-top boxes.
• 3) Firstly, it was called "Greentalk" by James Gosling and file extension was
.gt.
• 4) After that, it was called Oak and was developed as a part of the Green
project.
2/20/17 09:58:44 4
AM
• 5) Why Oak? Oak is a symbol of strength and choosen as a national tree of
many countries like U.S.A., France, Germany, Romania etc.
• 6) In 1995, Oak was renamed as"Java" because it was already a trademark by
Oak Technologies.
2/20/17 09:58:44 5
AM
Why Java name for java language?
• 7) Why they choosed java name for java language? The team gathered to
choose a new name. The suggested words were "dynamic", "revolutionary",
"Silk", "jolt", "DNA" etc. They wanted something that reflected the essence of
the technology: revolutionary, dynamic, lively, cool, unique, and easy to spell
and fun to say.
• According to James Gosling "Java was one of the top choices along with Silk".
Since java was so unique, most of the team members preferred java.
• 8) Java is an island of Indonesia where first coffee was produced (called java
coffee).
• 9) Notice that Java is just a name not an acronym.
• 10) Originally developed by James Gosling at Sun Microsystems (which is now
a subsidiary of Oracle Corporation) and released in 1995.
• 11) In 1995, Time magazine called Java one of the Ten Best Products of 1995.
• 12) JDK 1.0 released in(January 23, 1996). 2/20/17 09:58:44
AM
6
Java Version History
• There are many java versions that has been released. Current stable release
of Java is Java SE 8.
• JDK Alpha and Beta (1995)
• JDK 1.0 (23rd Jan, 1996)
• JDK 1.1 (19th Feb, 1997)
• J2SE 1.2 (8th Dec, 1998)
• J2SE 1.3 (8th May, 2000)
• J2SE 1.4 (6th Feb, 2002)
• J2SE 5.0 (30th Sep, 2004)
• Java SE 6 (11th Dec, 2006)
• Java SE 7 (28th July, 2011)
• Java SE 8 (18th March, 2014)
2/20/17 09:58:44 7
AM
Java Tutorial
2/20/17 09:58:44 8
AM
What is Java
2/20/17 09:58:44 9
AM
Where it is used?
According to Sun, 3 billion devices run java. There are many devices where java
is currently used. Some of them are as follows:
• Desktop Applications such as acrobat reader, media player, antivirus etc.
• Web Applications such as irctc.co.in, javatpoint.com etc.
• Enterprise Applications such as banking applications.
• Mobile
• Embedded System
• Smart Card
• Robotics
• Games etc. 2/20/17 09:58:44 10
AM
Types of Java Applications
There are mainly 4 type of applications that can be created using java
programming:
• 1) Standalone Application
It is also known as desktop application or window-based application. An
application that we need to install on every machine such as media player,
antivirus etc. AWT and Swing are used in java for creating standalone
applications.
• 2) Web Application
An application that runs on the server side and creates dynamic page, is called
web application. Currently, servlet, jsp, struts, jsf etc. technologies are used
for creating web applications in java.
2/20/17 09:58:44 11
AM
• 3) Enterprise Application
An application that is distributed in nature, such as banking applications etc. It
has the advantage of high level security, load balancing and clustering. In
java, EJB is used for creating enterprise applications.
• 4) Mobile Application
An application that is created for mobile devices. Currently Android and Java
ME are used for creating mobile applications.
2/20/17 09:58:44 12
AM
Features of Java
• Simple
• Object oriented
• Secure
• Platform independent
• Multithreaded
• Architectural neutral
• Distributed
• Dynamic
• Portable
• High performance
Reference
http://www.tutorial4us.com/java/features-of-java
Contd..
Compiled and Interpreted
18
Platform Independent and Portable
Contd..
19
Platform Independent and Portable
Contd..
Fig. 2.2 Once compiled, Java class file can be run on any platform 20
Object Oriented
21
Robust and Secure
22
Robust and Secure Contd..
23
Robust and Secure Contd..
24
Robust and Secure Contd..
25
Distributed
26
Distributed Contd..
on a single project
27
Simple, Small and Familiar
• Java is small and simple language. Many features of C and C++ are
not part of Java
eg. : Java does not provide
• Pointers
• goto statements
• Operator overloading
• Multiple inheritance
28
Simple, Small and Familiar Contd..
29
Multithreaded and Interactive
30
High Performance
31
Dynamic and Extensible
32
Dynamic and Extensible Contd..
33
Java and Internet
• Java is strongly associated with the 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 a 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 setup their websites containing java applets that
could be used by other remote users of Internet. This feature made Java
most popular programming language for Internet
2/20/17 09:58:45 34
AM
• Java and World Wide Web
World Wide Web (WWW) is an open-ended information retrieval system
designed to be used in the Internet's distributed environment. This system
contains Web pages that provide both information and controls. Web system
is open-ended and we can navigate to a new document in any direction. This
is made possible with the help of a language calledHypertext Markup
Language (HTML). Web pages contain HTML tags that enable us to find,
retrieve, manipulate and display documents worldwide.
• Java was meant to be used in distributed environments such as Internet.
Since, both the Web and Java share the same philosophy, Java could be
easily incorporated into the Web system. Before Java, the World Wide Web
was limited to the display of still images and texts. However, the
incorporation of Java into Web pages has made it capable of supporting
animation, graphics, games, and a wide range of special effects. 2/20/17 09:58:45 35
AM
Virtual machine
• As the name indicates, JVM is not a real hardware machine but a software
layer which resembles an hardware platform.
• JVM converts Java byte code into machine language and executes it.
The byte code can be executed on any platform where there exist JVM.
• JVM‘s are available for many hardware and software platforms.
• The use of the same byte code for all JVM’s on all platforms allows Java to be
described as a "write once, run anywhere" programming language.
• The execution engine helps JVM to convert bytecode into machine code.
• It has two parts:
a) Interpreter
b) Just-in-time-interpreter
It periodically check for the object on heap , whose link is broken so it can
collect garbage from heap.