explain System.out.println

Answer Posted / dipanjan paul

//--There was a slight mistake in my previous post--below
is the corrected one--//
'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 instantiated)
'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 ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a method declaration?

506


Are there structures in java?

550


What is the full meaning of java?

525


How will you reverse a link list without using recursion?

589


Why java is considered as platform independent?

588






List implementations of list interface?

555


What is anonymous inner class?

609


What is an iterator interface in java programming?

528


What is the use of coding?

517


How do you check if an arraylist is not empty?

569


When a byte datatype is used?

561


What is the purpose of a default constructor?

574


What is the difference between a field variable and a local variable?

565


How does regex work?

517


How to display names of all components in a Container?

2482