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 does += mean coding?

515


What does the append?

497


Explain about wait() method?

571


Give me an example of array and linked list? Where they can be used?

559


How can you read content from file in java?

599






Does variable declaration allocate memory?

587


How do you read and print a string in java?

528


Explain the difference between abstract classes and interfaces in java?

601


What is identifier give example?

559


What are the types of collections in java?

541


What are the limitations of procedural programming approach?

531


What is the purpose of a volatile variable?

559


Explain all java features with real time examples

1212


How do you decide when to use arraylist and linkedlist?

536


What do you understand by an io stream?

587