Tuesday, 29 October 2013

Creating an Application in Java, Compiling and executing Applications in Java.



a)Writing a Program
    
//A Very Simple Example
class Demo {
  public static void main(String[] args){
    System.out.println("it's Demo");
  }
}

  b) Compiling the Program

      javac ExampleProgram.java
c) Running the programm

      java demo (Note:- use here class name which have main method)

No comments:

Post a Comment