explain System.out.println
Answer Posted / gov@
println() is method belongs to the printstream class.
How we can call a method in java? using object of the class to which the method belongs to.now out is the object of the printstream class,so we can call println() method using out.println(),now System.out.println(),here system is the class name [we know static members of a class can be accessed using classname.methodname or classname.members)since out is not a method so the object can be declared as a static variable of System class.
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is a marker interface?
What are the important features of Java 11 release?
What is valid keyword in java?
What are wrapped classes in java programming?
How do you check if two given string are anagrams?
What is difference between iterator access and index access?
How do you sort objects in java?
What is the difference between logical data independence and physical data independence?
Difference between static binding and dynamic binding?
What is your platform’s default character encoding?
Is arraylist an object in java?
Is string is a class in java?
Is java a utf 8 string?
What is ternary operator in java?
For class CFoo { }; what default methods will the compiler generate for you>?