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


Please Help Members By Posting Answers For Below Questions

In which order the iterator iterates over collection?

587


What is assembly condition codes?

560


Can we create constructor in abstract class ?

586


What all methods are used to prevent thread execution ?

558


What is mean by exception?

554






we have syntax like for(int var : arrayName) this syntax is to find whether a number is in the array or not.but i want to know how to find that number's location.

1574


Where is java located?

505


Can we use both this () and super () in a constructor?

556


What are the different collection views provided by maps?

573


Can a source file contain more than one class declaration?

521


Can we overload destructor in java?

545


explain local datetime api in java8?

562


What is the purpose of the strictfp keyword?

616


Is java free for businesses?

591


What is consumer in java?

530