Introduction to Java Programming Language
What is JAVA
Java is programming language that produces software for multiple platforms, when a programer writes a java application, the byte code runs on most operating system, including Windows, Linux and Mac. It is a general purpose computer programming language that is designed to have the look and feel of the C++ language. It is simpler to use and enforces an Object Oriented Programming feature.
Creation Of Java
Java was developed by James Ghosling, Patrick Naughton, Mike Sheridan at Sun Microsystems in 1991. It took 18 months to develop the first working version.
The initial name was Oak but it was renamed to Java in 1995 as OAK was registered trade mark of another Tech company.
History Of Java
There are many realease of Java, recent 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)
Application Of Java
Java is used worldwide. It is not only used in softwares but it is also used in the designing of hardware controlling software components.
Following are some other usage of Java:
- Developing Desktop Application.
- Web Applications like snapdeal.com.
- Mobile Operating System like Android.
- Embedded Systems.
- Robotics and games etc.
Features Of Java
Java is much simpler than C++ beacause Java uses automatic memory allocation and garbage collection.
In java everything is Object which has some data and behaviour. Java can be easily extended as it based on Object Model.
Java is robust because it is highly supported language. It is portable across many operating system, it also has feature of automatic memory management and garbage collection.
Java is platform independent language that guaranteed to be write-once, run-anywhere (WORA) language. On compilation java program is compiled into bytecode, this bytecode is platform independent and can be run on any machine with Java Runtime Environment (JRE).
Java program always runs in Java Runtime Environment (JRE) with almost null interaction with system OS, hence it is more secure.
6. Architectural Neutral:
Compiler generates bytecodes, that do not have any impact on computer architecture, hence a java program is easy to interpret on any machine.
7. Multi Threading:
This feature makes it possible to write program that can allow multiple user to perform multiple tasks simultaneously
Java byte code can be carried to any platform, no implementation dependent features.
Disadvantages Of Java:
1. Slow Performance:
The first drawback of Java is slow speed of execution. To overcome this, Java comes with the JIT (Just-In-Time) compiler.
2. No Control over garbage collection:
Garbage collection is one of the built-in features of Java and is entirely managed by JVM.