Introduction of Java

The introduction of Java | Java is developed by “James Gosling” in 1991 with his two other Colleagues when they were working in Sun MicroSystems. They Named it “OAK” but later they changed its name to “JAVA” because “OAK” was the Trademark of Oak Technologies. Java version releases so far:

  • Java first version 1.0 and then 1.1 was released in the year 1996.
  • Java version 1.2 (Commonly called as java 2) was released in the year 1998.
  • Java Version 1.3 codename Kestrel was released in the year 2000.
  • Java Version 1.4 codename Merlin was released in the year 2002.
  • Java Version 1.5/Java SE 5 codename ‘Tiger’ was released in the year 2004.
  • Java Version 1.6/Java SE 6 Codename ‘Mustang’ was released in the year 2006.
  • Java Version 1.7/Java SE 7 Codename ‘Dolphin’ was released in the year 2011.
  • Java Version 1.8 is the current stable release which was released this year (2015).

Java is a programming language which is widely used in the world because of its many features like.

  • Robustness: – Java is robust in nature because of its high supported language.
  • Write Once Run Anywhere: – Java is Portable. you can write the program on any platform and run it on any other platform(Operating System). For Example, you write a program on  Mac in java then you can run the same program on Windows, Linux etc.
  • Secure: – Java is secure as it does not use pointers. because Pointers can often cause data leaks to unauthorized applications.
  • Object Oriented Programming Language: – Java is an object-oriented programming language because java run runs everything in a class even a single “Hello World Program”.

How Java Works: –

A Simple Java Program to understand how really java Works: –

class MytrendinSample{  
 public static void main(String args[]){  
   System.out.println("Hello Mytrendin");  
 }  
}

Code Structure in Java: –

What goes inside the Source file: –

The source file contains classes. a class represents a piece of code. it needs a minimum of one class to run. this file must be saved with .java extension.

What goes inside the class: –

The Class contains variables, methods.

What goes inside the methods:-

The methods contain set of statements inside it like if else statement, “do while” statement.

What are Basic Requirement to run a Java program: – 

  • Download the JDK.
  • Install the JDK on your system.
  • Set the path of the JDK/bin directory.
  • Create the java program
  • Compile and run the java program.
  • Or you can use IDE like Eclipse to run the java program.

 

If you really liked the article, please subscribe to our YouTube Channel for videos related to this article.Please find us on Twitter and Facebook.

Related Posts

Categories: