Friday, 17 July 2015

SIMPLE PROGRAMME TO PRINT HELLO JAVA ON JDK(CMD) FOR BEGINEERS

programme:-write it in notepad

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


To run this programme save it by abc.java
1.open cmd.
2.type as according to me
 a) cd\        (enter)
 b) cd foldername(where you save your batch file)      (enter)
 c) batch file name      (enter)
 d) javac abc.java
 e) java abc

No comments:

Post a Comment