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

Can a static block throw exception?

653


What are white spaces in java?

531


What is a function in java?

570


What is the relationship between class and object?

527


What do you mean by compiler?

582






What do you mean by aggregation?

568


I am unable to find or learn about print command. I have a graphical program in core java in applet but i want to give print command but i have coding for that so if anyone know about this plz mail me on avdhesh_chauhan007@yahoo.co.in

1598


What does n mean?

517


How is it possible for two string objects with identical values not to be equal under the == operator?

528


What is the reflection?

563


How you can force the garbage collection?

538


what is the role of xml in core java?? and how we can use it?? can somebody give a sample program with explanation and from where i can read more about xml?????

1801


What are the files generated after using IDL to java compiler?

589


State the significance of public, private, protected class?

652


What does split function do in java?

536