Skip to main content

Welcome in Java world program

welcome in java world program

Step 1-

Write the first java program by using any text editor like Notepad. Save this program as Welcome.java.

public class Welcome {

	public static void main(String[] args) {
		System.out.println("Welcome in java world.");

	}
}

Step 2-

Compile the written program. Open the command prompt and type the given below command and press Enter key.

javac Welcome.java
compile welcome in java world program

Step 3-

To run the program, type the given below command and press Enter key.

java Welcome
run welcome in java world program

Now the program successfully run and output will be display as given below.

Welcome in java world.

Feel free to write comments for any suggestion.

Leave a Reply

Your email address will not be published. Required fields are marked *

Top