0

How is the println() method defined?

29th Aug 2016, 4:35 PM
Sumedh Khanolkar
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.
7th Sep 2016, 8:53 AM
Vinay
Vinay - avatar