Since Java is an object oriented language,so we have to first create a class.
In this case HelloWorld
Program Code:
class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello World!"); // Display the string inside the commas.
}
}

0 comments:
Post a Comment