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
When to use runnable interface vs thread class in java?
What is difference between == equals () and compareto () method?
What happens if we override private method?
Why do we use variables?
Which container method is used to cause a container to be laid out and redisplayed in java programming?
Is there a way to increase the size of an array after its declaration?
Will the compiler creates a default constructor if I have a parameterized constructor in the class?
How does indexof work?
Does a class inherit the constructors of its superclass in java programming?
In how many ways we can do exception handling in java?
Can we change the scope of the overridden method in the subclass?
What is close method? How it's different from Finalize & Dispose?
How big is a gigabyte?
What are different types of control structures?
State one difference between a template class and class template.