explain System.out.println
Answer Posted / padmakar
System is a class in java.lang package.
as per the concept of java , the instance methods will be called with the objects and the static methods will be called with the class name, the print() method and println() methods are defined as instance methods in the printstream class, which is treated as static in the system class.
so the println() will be called with object of printstream class
i.e out.println() which is static in nature in system class.
so, it is System.Out.println()
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
design an lru cache in java?
Can I overload to string method
Write a program to print fibonacci series
Can a class be declared as static?
Can java cast null?
What is += mean in java?
What is byte value?
What is an i/o filter?
What is a loop java?
How to do a true java ping from windows?
What is preparedstatement in java?
What is the argument in java?
What is a java applet? What is an interface?
What is the method overriding?
I want my class to be developed in such a way that no other class (even derived class) can create its objects. Define how can I do so?