Sample Java Program:
1 public class Hello
2 {
3 /**
4 * My first Java program
5 */
6 public static void main( String[] args ){
7 //prints the string Hello world on screen
8 System.out.println(“Hello world”);
9 }
10 }