0
How is the println() method defined?
1 Answer
0
Printing is part of a Java standard library: The 'System' class defines a 'public static' field called 'out'. The 'out' object is an instance of the 'PrintStream' class and provides many methods for printing data to standard out, including 'println(String)' which also appends a new line to the passed string.
The string "Hello, world!" is automatically converted to a String object by the compiler.