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
Can a static block throw exception?
What are white spaces in java?
What is a function in java?
What is the relationship between class and object?
What do you mean by compiler?
What do you mean by aggregation?
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
What does n mean?
How is it possible for two string objects with identical values not to be equal under the == operator?
What is the reflection?
How you can force the garbage collection?
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?????
What are the files generated after using IDL to java compiler?
State the significance of public, private, protected class?
What does split function do in java?