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
What is the difference between a switch statement and an if statement?
What is string literal in java?
When is the arraystoreexception thrown?
Justify your answer that you can't define a method inside another method in java, if you can then how?
Explain throw keyword in java?
What is console based application in java?
Is null a string or object in java?
Which object oriented concept is achieved by using overloading and overriding?
How do I convert a string to an int in java?
What is preflight request?
What are untrusted applets?
Explain garbage collection in java?
Why do we need data serialization?
How many types of array are there?
Is java owned by oracle?