Feb 23, 2021

Write first java program which prints message on the output screen

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. 


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



Share This:    Facebook Twitter

0 comments:

Post a Comment

If you have any doubts, please discuss here...