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

Explain constructors and types of constructors in java.

644


Can we override constructor?

538


What are the two basic ways in which classes that can be run as threads may be defined?

552


What is thread pool? How can we create thread pool in java?

622


What data type is true or false?

574






What are the pillars of java?

489


What is update method called?

665


What is string variable?

566


What is static keyword?

591


What are some alternatives to inheritance?

556


Name some OOPS Concepts in Java?

639


How can you write a loop indefinitely in java programming?

552


What is the maximum size of a string in java?

551


Give few difference between constructor and method?

518


Can we catch more than one exception in single catch block?

599