explain System.out.println

Answer Posted / padmakar

System is a class in java.lang package.
as per the concept of java , the instance methods will be called with the objects and the static methods will be called with the class name, the print() method and println() methods are defined as instance methods in the printstream class, which is treated as static in the system class.
so the println() will be called with object of printstream class
i.e out.println() which is static in nature in system class.

so, it is System.Out.println()

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is multithreading important?

498


what is the difference between yielding and sleeping? : Java thread

525


What is tcp ip in java?

592


What is r in java?

595


Does .length start 0 java?

569






What is method overriding in java ?

664


Which collection is sorted in java?

552


Difference between nested and inner classes ?

610


Is set thread safe java?

504


Why null value is used in string?

532


I am a fresher and know core java, c languge, html, css etc if I am illegible for any job then send it on my email tatranakshay276@gmail.com

1079


What Is Composition?

585


Where to store local variables?

585


Explain the different forms of polymorphism?

571


What about static nested classes in java?

592