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

When to use runnable interface vs thread class in java?

514


What is difference between == equals () and compareto () method?

528


What happens if we override private method?

521


Why do we use variables?

506


Which container method is used to cause a container to be laid out and redisplayed in java programming?

592






Is there a way to increase the size of an array after its declaration?

598


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

579


How does indexof work?

502


Does a class inherit the constructors of its superclass in java programming?

520


In how many ways we can do exception handling in java?

570


Can we change the scope of the overridden method in the subclass?

839


What is close method? How it's different from Finalize & Dispose?

555


How big is a gigabyte?

611


What are different types of control structures?

487


State one difference between a template class and class template.

618