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
What is a method declaration?
Are there structures in java?
What is the full meaning of java?
How will you reverse a link list without using recursion?
Why java is considered as platform independent?
List implementations of list interface?
What is anonymous inner class?
What is an iterator interface in java programming?
What is the use of coding?
How do you check if an arraylist is not empty?
When a byte datatype is used?
What is the purpose of a default constructor?
What is the difference between a field variable and a local variable?
How does regex work?
How to display names of all components in a Container?