Java Basic Example

This is a basic example in Java

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

Output :

Compile the above java programe like the following,

c:\java> javac MyFirstExample.java 

Run the above java programe after compiling like the following,

c:\java> java MyFirstExample
Hello ExamplesCoding