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
Can we execute java program without main method?
Does unicode support all languages?
What is the memory leak in java?
Name four container classes.
What does split function do in java?
What does t in java mean?
Which access specifier can be used with class ?
How will you initialize an Applet?
Why java is object oriented?
Why should we use singleton pattern instead of static class?
What is the difference amongst jvm spec, jvm implementation, jvm runtime ?
Implementations of set interface?
What is difference between next () and nextline () in java?
Can we override constructor in java?
Explain notify() method of object class ?