Introduction - Java
Java is a computer programming language which is used to develop desktop applications, mobile applications, web applications. It is high level language (a high level language is easier to read, write and maintain because it is much closer to human language)..
Java is a general purpose computer language that means It is broadly applicable across application domains. (It can be used for any general purpose).
Java Buzzwords or Features of Java
Java was designed to make it much easier to read and write. It has similar coding syntax as C or C++ has so It is much easier for C or C++ programmers to learn Java. C or C++ code has bugs related to memory allocations and de-allocations. Java added feature in JVM which provides automatic memory allocation and garbage collection..
2. Object oriented
Object oriented is a paradigm, It means the way or the pattern of codding. Almost everything is an object in Java The code resides in the Objects and Classes.
Java is also designed for distributed systems (Systems on the network). It is used for creating network applications. Java objects can be accessed over the remote networks as we access at local systems.
4. Compiled and Interpreted
Most of the computer programming languages are either compiled or interpreted but Java uses the both approaches.
- Compiled: Java compiles the source code into the intermediate code called bytecode and the bytecode is a cross platform program that means it is accessible
- Interpreted: Intermediate code is interpreted
Java takes the responsibility of checking code both at compile time and runtime.
Java takes the responsibility of memory management problems with garbage collection.
Java gives the feature of exception handling, which catches all types of errors and exceptions.
Java provides security against viral infection or malicious intent.
An applet is a java small program which provides security.
7. Architecture neutral
Java Virtual Machine helps for achieving portability of program. Java program can be run anywhere it is portable. It is slogan of Java write once; run anywhere.
A java program is dependent on Virtual machine and Virtual machine is dependent on operating system, processors and system resources.
Java helps in generating portable executable code, which is known as bytecode. Bytecode is intermediate code for execution.
9. High performance
Java uses bytecode so the bytecode is easily translated into machine code because of bytecode It has high performance.
Java supports multi-threading, A thread is a lightweight process. One or more thread can be executed in a program concurrently.
Java is efficient of linking libraries and native methods (methods which are written in other languages) dynamically.
- JDK 1.0 on January 23, 1996
- JDK 1.1 on February 19, 1997
- J2SE 1.2 on December 8, 1998
- J2SE 1.3 on May 8, 2000
- J2SE 1.4 on February 6, 2002
- J2SE 5.0 on September 30, 2004
- Java SE 6 on December 11, 2006
- Java SE 7 on July 28, 2011
- Java SE 8 on March 18, 2014
- Java SE 9 on September 2017
- Java SE 10 on March 2018
- Java SE 11 (LTS) on September 2018
- Java SE 12 on March 2019