Ex: Write your first java program which prints Hello Java. How to Write first java program which prints message on the output screen. Java program which prints Hello Java message on the output screen.
In this program we will print message/text on the output screen using System.out.println() print statement.
Program:
class Main
{
public static void main(String arts[]){
//To print output
System.out.println("Hello Java");
}
}
Above java program shows the following output:Hello Java
No comments:
Post a Comment
If you have any doubts, please discuss here...👇