Java Tutorial for beginners

Updated:13/feb/2020 by Computer Hope

The Java programming language was developed by Sun Microsystems in the early 1990s.
Here are some key concepts and steps to get started with Java programming:

Below is an example of a basic     Java    that would print the words Hello World.

Java programs are composed of classes. The main method is the entry point of a Java program.
Statements are terminated with a semicolon (;).
Java is case-sensitive .
In java , we can added a comment with // or /* code here */ so it is simple to explain about code using comment.
Java is an object-oriented programming language, It based on concept of objects and classes
In below example we are printing value "hello World" on console.

public class MyFirstJavaProgram{  
    /* This is my first java program. 

    * This will print 'Hello World' as the output


    public static void main(String[]args){

        System.out.println("Hello World");// prints Hello World  




Mandatory Tools you will need to install

  • you will need a Pentium 200-MHz computer with a minimum of 128 MB of RAM.
  • Linux 7.1 or Windows 95/98/2000/XP operating system.
  • Java JDK 5
  • Microsoft Notepad or any other text editor.
  • Visit the official Java website ( to download.
  • First, download and install the latest version of the Java Development Kit (JDK) from the Oracle website or AdoptOpenJDK (for open-source JDK). Make sure to set up the PATH environment variable correctly.
  • Open a text editor and create a new file with a ".java" extension (e.g., Write a simple Java program
  • Save the file and open a terminal (command prompt) in the directory where you saved the file.
    Compile the Java program using the javac command:


This tutorial offers a fundamental introduction to Java programming. You can examine more complex subjects as you go, including multithreading ,exxeption handling ,data structures, exception handling, file I/O, and Java libraries.
There's much more to learn, such as arrays, collections, file I/O, exception handling, and more with us . Practice coding regularly, work on small projects , and explore Java's extensive standard library to become proficient in Java programming. Best of Luck for coding.