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 difference between iterator and enumeration in java?
What are the uses of java?
What is the use of java?
What is meant by main method?
Can you extend main method in java?
What is scope & storage allocation of static, local and register variables? Explain with an example.
What is the scope or life time of instance variables?
Whats the difference between notify() and notifyall()?
Why parameters should be passed by reference?
What is the gregoriancalendar class in java programming?
What is the basic of java?
What is a platform?
What is difference between calling start() and run() method of thread?
Why are functions called methods in java?
Which number is denoted by leading zero in java?