when System.out.println("") is executed what happens in the
back ground?
Answers were Sorted based on User's Feedback
Answer / qim2010
'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 ? | 2 Yes | 1 No |
What access modifiers can be used for class ?
How can an exception be thrown manually by a programmer?
What is a null check?
Why is stringbuffer faster than string?
What are features of java?
Can static methods be overridden?
What is collections framework?
How do you replace all in word?
Where is the singleton class used?
Write a java program to print fibonacci series?
What is the size of int in 64-bit jvm?
How are this and super used?