Java Tutorial

In this tutorial we learn about the java programming language from beginner to advanced level.

What is Java

  • So first of all questions arise: what is java ?
  • Java is a programming language and a platform.
  • Java is high level programming language (it means we can write the code in human readable format)
  • Java is a robust programming language.
  • Java is object oriented and secured programming language.
  • Java was developed by Sun Microsystem (which is now a subsidiary of Oracle) in the year of 1995.
  • James Gosling is known as the father of Java. Before Java, it’s known as Oak. Since Oak was already a registered company, they decided to change their name from Oak to Java.

What is Platform

  • Any Hardware or software environment in which a program runs is known as a platform.
  • Java has a runtime environment called JRE(Java Runtime Environment) and API, it called a platform.

Java Example Code

Please have a quick look about the Java programming language basic code example.

class MyClass{
 public static void main(String args[]){
  System.out.println("Sample Java Code");
 }
}

OUTPUT

Sample Java Code

Java in Application

According to Sun Microsystem, 3 billion devices run Java. Some of the useful devices mentioned below.

  • Desktop Application
  • Web Application
  • Enterprise Applications
  • Mobile Applications
  • Embedded Systems
  • Smart Cards
  • Robotics
  • Games