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 the difference between abstract classes and interfaces in java?
What is :: operator in java 8?
Why is java architectural neutral?
Can you explain the private protected field modifier?
Difference between ‘is-a’ and ‘has-a’ relationship in java?
What restrictions are placed on method overriding in java programming?
Can we override tostring method in java?
What do you know about the garbage collector in java?
What are scalar data types?
Highest level event class of the event-delegation model?
What are filterstreams?
How do we access static members in java?
What is finalize()?
Why isn’t there operator overloading?
which one is more efficient int x; 1. if(x==null) 2.if(null==x) state which one either 1 or 2?