explain System.out.println

Answer Posted / lalit bhangale

System.out.println();
System is the Class in which out is static object of
class PrintStream which refers t othe standard output ie
console output,
and PrintStream class contains the method println()
which will be accessed using PrintStream object out.
Since out is static so it can be only accessed using
class name in which it contains.
so System.out.println(); simply invokes println()
method to output specified data to standard output console.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the maximum length of a url?

511


Can you write a java class that could be used both as an applet as well as an application?

517


What is the difference between an array and an array list?

503


How do constructors use this() and super()?

549


What do you understand by looping in java? Explain the different types of loops.

563






Can list contain null in java?

627


How do you sort words in java?

536


Will the compiler creates a default constructor if I have a parameterized constructor in the class?

585


What is the purpose of using javap?

618


What do you understand by casting in java language?

579


What is oop in java?

526


Explain java thread life cycle.

583


what is comparable and comparator interface?

580


What are the advantages and disadvantages of reference counting in garbage collection?

575


Why is singleton instance static?

505