explain System.out.println

Answer Posted / anuram

System is a class. out is the object of PrintStream class .
println() is the instance method of PrintStream class.to
call that println() we need object of PrintStrem class but
the out is declared as static datamember of System class.So
to call println() befor we call static datamember out using
class name bcoz static datamember can be called by using
class name after that by using out object we can call println().

so System.out.println()

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is jit compiler in java?

590


What are the string methods in java?

584


Which is dependent variable?

494


How do you trim a space in java?

501


What are 4 pillers of object orinted programming?

582






What is the difference between static (class) method and instance method?

572


Is void a wrapper class?

535


Explain the difference between extends thread vs implements runnable in java?

534


What is the name of the java compiler?

528


Can you sort a string in java?

494


What is final method in java?

541


What happens if we don’t define serial version uid?

572


What is parsing and its types?

588


Why is stringbuffer not immutable?

568


What is the epoch date?

568