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


Please Help Members By Posting Answers For Below Questions

How to make object serializable in java?

540


Can a hashset contain duplicates java?

492


Explain access specifiers?

653


Do you need to import math in java?

557


What is the return type of the main method?

571






What are the differences between Java 1.0 and Java 2.0?

1670


What are the changes in java.io in java 8 ?

548


What is the difference between static and non-static variables in java programming?

515


What are the methods used to implement for the key object in the hash map?

561


Which is faster string or stringbuilder?

515


Where will it be used?

1501


What are predicates in java 8?

527


How can you make a class serializable in java?

563


What is the final method?

595


What is garbage collection? Can it be forced to run?

539