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 example of a boolean?
What is defined as false sharing in the context of multithreading?
Explain notify() method of object class ?
Does java linked list allow duplicates?
What is linked hashmap and its features?
What is concurrent hashmap and its features?
Is null false in java?
Explain a few methods of overloading best practices in java?
What is nullpointerexception in java?
how we can make a write-only class in java?
Describe the syntax of multiple inheritance? When do we use such an inheritance?
What are different types of constants?
What is difference between iterator and enumeration in java?
What is Mutex (Mutual Exclusion Object) ?
What is mvc in java?