Java program to display message

March 29, 2022 · Team EasyExamNotes · 1 min read (est.) · 0 comments

Share on WhatsApp
PROGRAM:

To display a message


public class PrintSentence {

            public static void main(String args[])
            {
                        System.out.println(“Welcome to Java”);
            }
           
}


OUTPUT:


Welcome to Java

Discussion

Ask a question, share your thoughts or report an error.

Sign in to participate in the discussion.

Join the discussion