Advertisements
Advertisements
Question
Write down the syntax of output statement in Java with an example.
Answer in Brief
Solution
Let's say the following syntax must be used to print the output statement "Hello World."
Syntax:
System.out.println("Hello World");
shaalaa.com
Is there an error in this question or solution?
Chapter 1.05: Introduction to Java - EXERCISES [Page 54]