explain System.out.println
Answer Posted / dipanjan paul
'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 inherited)
'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 ? | 25 Yes | 13 No |
Post New Answer View All Answers
How does split work in java?
Can we write a class without main method in java?
What is a short in java?
What are heap memory and stack memory and what are memory tables.
What is the purpose of the enableevents() method?
How to check if a list is sorted in java?
What are the steps involved to write rmi based programs?
What does indexof return in java?
How do you escape a string?
What is application system?
Explain about instanceof operator in java?
How does enum work in java?
What is a char in java?
How do you replace a string in java?
Name few "optional" classes introduced with java 8 ?