History of Java and Uses
Java is a programming
language and a platform. Java divided into 3 types of categories.
Java SE (java standard edition):
it deals standalone applications.
Java EE (java enterprise edition):
it deals web
applications.
Java ME (java micro edition/ mobile edition):
it deals mobile applications.
History of java:
1) Java was originally
developed by James Gosling and Team (also called as Green Team) at Sun
Microsystems (which has since been acquired by Oracle Corporation) and released
in 1995.
in 1995.
2) Firstly, it was called "Greentalk" by James Gosling and file extension was .gt
after that, it was called Oak (Oak is a
national tree of many countries like U.S.A., France).
3) Finally in 1995 Oak was renamed as Java.
4) Java is an island of Indonesia where first coffee was produced (called java coffee).
Uses of Java:
Types
of Java Applications
There are mainly 4 types of
applications that can be created using java:
1)
Standalone Application / Desktop Application
Standalone applications are install
on systems, such as media player, antivirus etc. AWT and Swing are used for
creating standalone applications.
2)
Web Application
Web applications create dynamic pages
and run on server side. Servlet, jsp, struts, Hibernate, spring are used for
creating web applications.
3)
Enterprise Application
Enterprise applications are
distributed in nature, such as banking applications etc. It has high level
security. EJB is used for creating enterprise applications.
4)
Mobile Application
Mobile applications are used to create
for mobile devices. Android and Java ME are used for creating mobile
applications.
Versions of java:
·
JDK 1.0 (January 21,
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 (March 18,
2014)
Download and Install java:
Check java installed or not:
Commands to check java installed or not
in your system “java –version” and “java –version”
C:\Users\Narendar>java -version
C:\Users\Narendar>javac –version
Features of java:-
Simple:-
Java programming language is simple because java
syntax is based on C, C++ and removed many confused features e.g. pointer,
operator overloading etc. there is Automatic Garbage Collection in java.
Object
oriented:-
Java is a purely object-oriented programming language. Java
programs use objects & classes. We learn more about object and class in
next chapter.
Platform
independent:-
A
platform is the hardware or software environment in which a program runs. There
are two types of platforms software-based and hardware-based. Java provides
software-based platform. Java runs on any hardware-based platform such as
windows, Linux, etc.
Distributed:-
Information is distributed on various on a network. Using java, we
can write programs which capture information & distribute it to clients.
Robust:-
Robust mean strong, java programs are strong. Java programs will
not crash easily because of its execution handling and its memory management
features because JVM is allotted the memory.
Portable:-
Java programs give same results on all machines. Everything is
clearly defined in java specification
Architecture
neutral:-
Java byte code is not machine dependent. It can be run any machine
with any processor & with any operating system.
High
Performance:-
Java is
faster than traditional interpretation since byte code is "close" to
native code still somewhat slower than a compiled language (e.g., C++).
Secured:-
Java
is secured because No explicit pointer and Programs run inside virtual machine.
Multi-threaded:-
A
thread is like a separate program, executing concurrently. We can write Java
programs that deal with many tasks at once.
Dynamic:-
We can develop programs in java which dynamically interact with
the user on internet.