+ 1
In java System is a class. But in println function is used without using any object. Why?
4 odpowiedzi
+ 9
System.out.println()
System - class
out - object
println() - function
more info : https://stackoverflow.com/questions/16590651/does-the-system-out-object-belong-to-class-system-or-class-printstream
+ 7
Are you referring to this:
System.out.println(); ??
If so, that will move the console to the next line.
So,
System.out.println();
System.out.println("Hi!");
'Hi!' will be placed on the 2nd line in the console.
+ 3
yes I am referring that