explain System.out.println

Answer Posted / zahid hussain indher

System is class of java.lang Package and we khow that all
the member of System class are static similiarly 'out' is
object of java.io.PrintStream class we use System.out mean
out is static object of java.io.PrintStream class and we are
familiar that if object of any class is achieved then we can
call the methods of that class and java.io.PrintStream class
provide a non-static method println() that is being called
by out object
System.out.println();
System = class
out = static object of java.io.PrintStram class
println()= is method of java.io.PrintStream

Hope Like the Answer

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how is final different from finally and finalize in java?

612


Can we pass a primitive type by reference in java? How

534


How to create com object in Java?

653


What is the difference between equals() and?

592


What is the properties class in java programming?

553






What is return type in java?

640


Explain OOPs concept.

653


What is initial size of arraylist in java?

539


Can you explain inner class.

598


Is overriding possible in java?

510


Why do we need variables?

534


How are variables stored in memory?

585


Can you pass by reference in java?

528


What is the role of garbage collector in java?

495


Should database connections be singleton?

570