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 does += mean coding?
What does the append?
Explain about wait() method?
Give me an example of array and linked list? Where they can be used?
How can you read content from file in java?
Does variable declaration allocate memory?
How do you read and print a string in java?
Explain the difference between abstract classes and interfaces in java?
What is identifier give example?
What are the types of collections in java?
What are the limitations of procedural programming approach?
What is the purpose of a volatile variable?
Explain all java features with real time examples
How do you decide when to use arraylist and linkedlist?
What do you understand by an io stream?