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 is the difference between preparedstatement and statement in java?
Is null keyword in java?
What is integer parseint?
Where import statement is used in a java program?
Can we write any code after throw statement?
what is nested class in java?
What are advantages of using Java?s layout managers than windowing systems?
What is the instance of an object?
What is reflexive association?
Can I overload to string method
What are static variables and functions?
Why should we use singleton pattern instead of static class?
What are void pointers?
Can we have multiple classes in single file ?
What are the types of exceptions?