create your 1st program :: Hello Java

let's create Hello Java program.

java tutorial :: futureX techblog
class Simple{                                                    
     public static void main(String args[]){
     System.out.println("Hello Java")
            }
     }


  • save the file as Simple.java
  • to compile open cmd & type javac Simple.java
  • to run type java Simple & press Enter.
  • output : Hello Java


Resolving an exception "javac is not recognized as an internal or external command "
See the post  how to set the jdk path in computer

0 comments:

Related Posts Plugin for WordPress, Blogger...
Copyright © 2013 futureX | Blogger Template by Clairvo