PROGRAM:
To display a message
public class PrintSentence {
public static void main(String
args[])
{
System.out.println(“Welcome
to Java”);
}
}
OUTPUT:
Welcome to Java
Ask a study question in English or Hindi. I will find relevant passages from our notes.
Discussion
Ask a question, share your thoughts or report an error.
Sign in to participate in the discussion.
Join the discussion