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
How to make object serializable in java?
Can a hashset contain duplicates java?
Explain access specifiers?
Do you need to import math in java?
What is the return type of the main method?
What are the differences between Java 1.0 and Java 2.0?
What are the changes in java.io in java 8 ?
What is the difference between static and non-static variables in java programming?
What are the methods used to implement for the key object in the hash map?
Which is faster string or stringbuilder?
Where will it be used?
What are predicates in java 8?
How can you make a class serializable in java?
What is the final method?
What is garbage collection? Can it be forced to run?