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

How we can make copy of a java object?

0 Answers  


What are the two ways you can synchronize a block of code?

5 Answers   Ericsson,


What is thread synchronization in java?

0 Answers  


a thread is runnable, how does that work? : Java thread

0 Answers  


How will you reverse a singly-link list?

0 Answers   Akamai Technologies,






why java does not contain pointers?

13 Answers   Infosys, TCS,


What are parsing rules?

0 Answers  


Class A extends Class B but Class A also inherit Super Class Object so it is multiple inheritence give reason in support of your answer

3 Answers  


How are variables stored in memory?

0 Answers  


what is difference betwenn Access Specifier and Access Modifier ????

2 Answers  


What is early binding and late binding in java?

0 Answers  


What is cloneable interface?

8 Answers  


Categories