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
What is the main purpose of java?
What type of variable is error flag?
What is the difference between checked exception and unchecked exception?
What is the difference between a scrollbar and a scrollpane?
Are private methods final?
what is session in java?
What is not thread safe?
If an object is garbage collected, can it become reachable again?
How do you write a scanner class in java?
If we don’t want some of the fields not to serialize how to do that?
What is mutable object and immutable object?
What is difference between core java and java ee?
Can we inherit inner class?
How do you convert an int to a string in java?
What is the purpose of using break in each case of switch statement?