How do you write java program?
The Following procedure should follow to write Java program
Step 1:open the Notepad
Step 2:write the following code
class Simple
{
public static void main(String a[])
{
System.out.println("This is First Program");
}
}
Step 3:save as with any name along wih .java extention
Step 4:open the command prompt by write cmd in run mode(windows+R)
Step 5:compile the java program javac filename.java
Step5:run the program java classname
No comments:
Post a Comment