explain System.out.println

Answer Posted / mallikarjuna g

System : It is a standard java class. It comes from the
java.lang package. it is bydefault package.
Out : The class system contains static field named "out".
so System.out referes to the value stored in that static
filed. the value System.out is an object of the class
printStream from the standard java package java.io.
Println() : it is the instance method come from the
PrintStream class.

so System.out.println() calls the "Println()" method
associated with the "printStream" object referred to by
static field "out"

Is This Answer Correct ?    55 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is formatted output in java?

607


How many bits is a string in java?

669


Is singleton class immutable?

629


Differentiate between vector and array list.

732


What is difference between iterator and enumeration in java?

607






Is java still relevant?

608


What is indexof in java?

617


What does nullpointerexception mean?

718


why are there separate wait and sleep methods? : Java thread

662


Is java a super set of javascript?

703


Explain which of the following methods releases the lock when yield(), join(),sleep(),wait(),notify(), notifyall() methods are executed?

727


How many bits are in a sentence?

683


What is empty string literal in java?

651


Explain the importance of import keyword in java?

639


Is it possible to use string in the switch case?

629