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


Please Help Members By Posting Answers For Below Questions

What is a marker interface?

580


What are the important features of Java 11 release?

582


What is valid keyword in java?

556


What are wrapped classes in java programming?

587


How do you check if two given string are anagrams?

553






What is difference between iterator access and index access?

648


How do you sort objects in java?

517


What is the difference between logical data independence and physical data independence?

533


Difference between static binding and dynamic binding?

568


What is your platform’s default character encoding?

556


Is arraylist an object in java?

602


Is string is a class in java?

525


Is java a utf 8 string?

532


What is ternary operator in java?

595


For class CFoo { }; what default methods will the compiler generate for you>?

620