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
how come we know the object is no more used in the class?
Can we override the overloaded method?
What's the base class in java from which all classes are derived?
How does list work in java?
What is the synonym of string?
Which one of the following suits the description of a string better: derived or primitive?
What do u mean by variable?
What is a Null object?
How list contains works in java?
What is a programming object?
What is meant by polymorphism?
What are the new features in java 8?
Is ruby built on java?
What do you mean by buffering?
What is immutable in java?