when System.out.println("") is executed what happens in the
back ground?

Answers were Sorted based on User's Feedback



when System.out.println("") is executed what happens in the back ground?..

Answer / dsr

When ever System.out.println("") executing JVM doing like
that System is a class, out is object of PrintStream class,
println() is a method in PrintStream class.

Is This Answer Correct ?    11 Yes 0 No

when System.out.println("") is executed what happens in the back ground?..

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

Post New Answer

More Core Java Interview Questions

y cant i declare method like public final static show()

3 Answers  


What is string data?

0 Answers  


What is garbage collection? Can it be forced to run?

0 Answers   Global Logic,


What is a Transient Object?

0 Answers   InfoAxon Technologies,


What is instanceof keyword?

0 Answers  






'A class is a template for an object' explain this statement.

0 Answers   Akamai Technologies,


What is super in java?

0 Answers  


What is string length in java?

0 Answers  


What is hasnext in java?

0 Answers  


What is package private scope in java?

0 Answers  


what is ABSTRACTION and what are using in real time project?

1 Answers   iGate,


For which statements we use a label?

3 Answers   Wipro,


Categories