Introduction to Java:-
History of Java
Introduction to Java:-
Java is a high level programming language.
Java was originally developed by James Gosling at sun microsystems, in 1991, later acquired by Oracle corporation. Jawellers on various platforms like a windows, Mac OS, and Unix.
Java is a guaranteed to be write once, run anywhere.
Java can be used for large number of things including software development, mobile application, & large systems development.
java is an object oriented programming language with its runtime environment.
Java is a combination of features of c and C ++ with the same initial additional concepts or features.
Why Use Java?
- JAVA is easy to learn and simple to use
- Java is open-source and free
- As Java is close to C++ and C#, it makes it easy for programmers to switch to Java or vice versa
- Java works on different platforms (Windows, Mac, Linux, Raspberry Pi, etc.)
- JAVA is one of the most popular programming language in the world
- Java is secure, fast and powerful
- Java has a huge community support (tens of millions of developers)
- Java is an object oriented language which gives a clear structure to programs and allows code to be reused, lowering development costs
The latest version of Java is Java 14 for JDK 14 released on March, 17th 2020.
Following table shows all Java versions
Java SE Version
|
Version Number |
Release Date |
JDK 1.0 (Oak)
|
1.0 |
January 1996 |
JDK 1.1
|
1.1 |
February 1997 |
J2SE 1.2 (Playground)
|
1.2 |
December 1998 |
J2SE 1.3 (Kestrel)
|
1.3 |
May 2000 |
J2SE 1.4 (Merlin)
|
1.4 |
February 2002 |
J2SE 5.0 (Tiger)
|
1.5 |
September 2004 |
Java SE 6 (Mustang)
|
1.6 |
December 2006 |
Java SE 7 (Dolphin)
|
1.7 |
July 2011 |
Java SE 8
|
1.8 |
March 2014 |
Java SE 9
|
9 |
September, 21st 2017 |
Java SE 10
|
10 |
March, 20th 2018 |
Java SE 11
|
11 |
September, 25th 2018 |
Java SE 12
|
12
|
March, 19th 2019 |
Java SE 13 | 13 |
September, 17th 2019
|
Java SE 14
| 14 |
March, 17th 2 |
Following is a simple java program
Print hello world using Java
public class MyFirstJavaProject
{
/* This is my first java project. * This will print 'Hello World' as the output */
public static void main(String []args) {
System.out.println("Hello World");
// prints Hello World
}
}
Why to Learn java Programming?
- Java is a MUST for students and working professionals to become a great Software Engineer specially when they are working in Software Development Domain. I will list down some of the key advantages of learning Java Programming:
- Object Oriented − In Java, everything is an Object. Java can be easily extended since it is based on the Object model.
- Platform Independent − Unlike many other programming languages including C and C++, when Java is compiled, it is not compiled into platform specific machine, rather into platform independent byte code. This byte code is distributed over the web and interpreted by the Virtual Machine (JVM) on whichever platform it is being run on.
- Simple − Java is designed to be easy to learn. If you understand the basic concept of OOP Java, it would be easy to master.
- Secure − With Java's secure feature it enables to develop virus-free, tamper-free systems. Authentication techniques are based on public-key encryption.
- Architecture-neutral − Java compiler generates an architecture-neutral object file format, which makes the compiled code executable on many processors, with the presence of Java runtime system.
- Portable − Being architecture-neutral and having no implementation dependent aspects of the specification makes Java portable. Compiler in Java is written in ANSI C with a clean portability boundary, which is a POSIX subset.
- Robust − Java makes an effort to eliminate error prone situations by emphasizing mainly on compile time error checking and runtime checking.