when System.out.println("") is executed what happens in the
back ground?
Answer Posted / 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 |
Post New Answer View All Answers
How many java versions are there?
What is mean by collections in java?
What is meant by interface?
What is an error in java?
What is the argument in java?
Is jdk required on each machine to run a java program?
Can interface be private in java?
What is comparator in java?
Why do we override tostring method in java?
What is the purpose of finalization in java programming?
What is a 16 bit word?
When can we say that threads are not lightweight process in java?
Write a program to print all permutations of string?
What are runtime exceptions?
Why is java called java?