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 differences between getting and load method?
What are the access modifiers available in java?
How do you check if two given string are anagrams?
Can we convert stringbuilder to string in java?
What is the use of bufferedreader?
What is the difference between the prefix and postfix forms of the ++ operator?
What is mysql driver class name?
Can we use synchronized block for primitives?
What is the inheritance?
What are the steps involved to create a bean?
What is default switch case? Give example.
Write a java program for binary search?
How do you sort in descending order in java using collections sort?
why doesn't java run on all platforms?
What is array list in java?