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
What are the 6 functions?
What are the main uses of the super keyword?
How do you decide when to use arraylist and linkedlist?
What is the final keyword?
Give the hierarchy of inputstream and outputstream classes.
What is scanner in java?
How is garbage collection controlled?
How many threads does a core java have?
What are the data types supported by java?
explain autoboxing in java?
Is set ordered?
What is the difference between preparedstatement and statement in java?
how to split string in java?
What is the full form of jpeg?
What are the procedures?