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 an escape character in java?
What is static import in java?
Are arrays passed by reference in java?
What is bean? Where it can be used?
How can we avoid including a header more than once?
What is Hierarchy of exception?
5 Coding best practices you learned in java?
Difference between static and dynamic class loading.
What is use of super keyword in java?
Why we use multi threading instead of multiprocessing?
What is the latest version of java?
When is update method called?
What do you understand by the term wrapper classes?
What are recursive functions?
What is meant by distributed application? Why are we using that in our application?