Check out example codes for "first line of java code". It will help you in understanding the concepts better.

Code Example 1

public class Main {
    public static void main(String[] args) {
        System.out.println("This will be printed");
    }
}

Code Example 2

public class Hello
{
  	public static void main(String[] args)
    {
      /*Tip System.out.println(); shortcut Type 'sysout'and press Tab */
      System.out.println("Hello world!");
    }
}

Code Example 3

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

Learn ReactJs, React Native from akashmittal.com