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
Explain constructors and types of constructors in java.
Can we override constructor?
What are the two basic ways in which classes that can be run as threads may be defined?
What is thread pool? How can we create thread pool in java?
What data type is true or false?
What are the pillars of java?
What is update method called?
What is string variable?
What is static keyword?
What are some alternatives to inheritance?
Name some OOPS Concepts in Java?
How can you write a loop indefinitely in java programming?
What is the maximum size of a string in java?
Give few difference between constructor and method?
Can we catch more than one exception in single catch block?