explain System.out.println

Answer Posted / jacob.p.george

'system' is a public class which is final which can never
be extended..It itself extends object.
'out' is the static object of the class PrintStream.
'println()' is the method of printStream class..
since 'out' is a static object it can be called by using
the class name'system'
so 'Sstem.out.println()'

Is This Answer Correct ?    362 Yes 45 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is update method called?

653


Explain java code for recursive solution's base case?

558


Can we use switch statement with strings?

609


How can you set the applet size?

564


What are green threads in java?

548






What are the different collection views provided by maps?

554


If an application has multiple classes in it, is it okay to have a main method in more than one class?

528


What class of exceptions are generated by the java run-time system?

620


How to avoid memory leak in java?

588


Why map is used in java?

564


Why is java multithreaded?

522


Can we define private and protected modifiers for the members in interfaces?

526


How many threads can java run?

548


What is meant by string is immutable?

508


How to change the priority of thread or how to set priority of thread?

552