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 |
How many bytes is a string java?
What will happen if we declare don’t declare the main as static?
What is a native method in java programming?
Why does java not support operator overloading?
What are multiple inheritances?
Explain the reason behind ending a program with a system.exit(0)?
What is functional interface in java example?
How do you sort arrays in java?
How TreeMap sorts the objects inside it?? suppose if have include one employee object and one car object. On what basis it will sort?
What is core java used for?
What is difference between filereader and bufferedreader?
How does regex work?