javadustbin1

step1:

open a notepad or any other window.

step2:

save a program with a class name Welcome.java

step3:

write a java program with a class name.
public class Welcome
{

public static void main(String ashu[])
{

System.out.println("Welcome to java program");
}

}

step4:

compile a java program with javac command
            javac Welcome.java

step5:

successfully complied a program.Next

step6:

executing the program using java command.
java Welcome

Output:


Welcome to java program.

       
Newer Post
Previous
This is the last post.

1 comments: