explain System.out.println
Answer Posted / dipanjan paul
'System' is a class in 'java.lang' package, which is a
final class(can not be inherited) and its constructor is
private(can not be inherited)
'out' is a static member variable of 'System' class which
is of type 'PrintStream'
'println()' is a method of 'PrintStream' class
So 'System.out.println()' means calling of method 'println
()'of the static 'PrintStream' type variable 'out'
of 'System' class.
And is used to print a String to the system console.
| Is This Answer Correct ? | 25 Yes | 13 No |
Post New Answer View All Answers
What is the purpose of the wait(), notify(), and notifyall() methods in java programming?
What super () does in java?
What is a package in java? List down various advantages of packages.
Can we have any code between try and finally blocks?
Can you give few examples of final classes defined in java api?
What is keyset in java?
What does s mean in regex?
Why java is considered dynamic?
What is array command?
How do I stop concurrentmodificationexception?
What is sizeof in java?
What's a method in programming?
How to perform binary search in java?
What are runtime exceptions?
What are the differences between processes and threads?