class Demo
{
public static void main(String arg[])
{
System.out.println("hello word");
}
} step 1:save above code as notepad text file eg: abc.java
step 2: set the path of jdk/bin folder
step3:compile java code eg: c:\javac abc.java
step4:Interepret and execute eg: java Demo
{
public static void main(String arg[])
{
System.out.println("hello word");
}
} step 1:save above code as notepad text file eg: abc.java
step 2: set the path of jdk/bin folder
step3:compile java code eg: c:\javac abc.java
step4:Interepret and execute eg: java Demo
No comments:
Post a Comment