In this post we will learn to print "Hello World!" using Java programming language. In order to print the specified message in the output screen we write following code snippet.
public class Hello {
public static void main(String[] args) {
// TODO Auto-generated method stub
System.out.println("Hello World!");
}
}
public static void main(String[] args){
}
Final output for the above program is shown below.
Hello World!
0 Comments