Getting Started with Java

  • The Java Programming Language is a general-purpose, concurrent, strongly typed, class-based object-oriented language.
  • Java was orignally developed by James Gosling at Sun Microsystems and released in 1995.
  • Oracle Corporation is the current owner of the official implementation of the Java SE platform.
  • The current stable version, Java SE 13 released on September 17, 2019
  • OpenJDK (Open Java Development Kit) is a free and open-source implementation of the Java Platform, Standard Edition (Java SE).
  • OpenJDK is the official reference implementation of Java SE since version 7.

Step 1: Download and Install Oracle JDK or Oracle OpenJDK from

  • Oracle JDK: https://www.oracle.com/technetwork/java/javase/downloads/index.html
  • Oracle OpenJDK : https://openjdk.java.net/ or https://jdk.java.net/13/

Step 2: Set the Java Path in System Environmental Variables

Step 3: Now create MyClass.java file as shown below

public class MyClass {

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

Step 4: Compile and Run the Java Program from command prompt as shown below

C:\Users\Girish\JavaPrograms>javac MyClass.java

C:\Users\Girish\JavaPrograms>java MyClass
Hello World

Step 5: Check the files it has created

C:\Users\Girish\JavaPrograms>dir
........
11-10-2019  11:01 PM               429 MyClass.class
11-10-2019  11:00 PM               121 MyClass.java
........

To check the installed version of java

C:\Users\Girish>java -version
openjdk version "13" 2019-09-17
OpenJDK Runtime Environment (build 13+33)
OpenJDK 64-Bit Server VM (build 13+33, mixed mode, sharing)

Popular Java Integrated Development Environments (IDE)

  • Eclipse IDE 2019-09 R (Eclipse IDE for Enterprise Java Developers)
    • https://www.eclipse.org/downloads/packages/
  • Apache NetBeans 11.1
    • https://netbeans.apache.org/download/index.html
  • IntelliJ IDEA Community Edition (Version 2019.2.3)
    • https://www.jetbrains.com/idea/download/#section=windows

References

  • https://www.oracle.com/technetwork/java/javase/downloads/index.html
  • https://openjdk.java.net/

Learn more about Java Features in the upcomgin blog articles

Happy Learning!