I am just beginning to learn Java, coming from C background.
How can the line "System.out.println()" be dissected?
Java is an object-oriented language.
System is a class that contains useful fields and methods. See the API.
out refers to an object that is part of System that is the standard output, so it written as System.out.
println("blah") is a method for System.out that prints a String as a line. When no argument is given (so println()) it prints a blank line.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With