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 are the benefits of immutable objects?
What is the this keyword?
Name four container classes.
When is finally block not called?
Is array an object in java?
What is locale in java?
What is difference between hashset and hashmap in java?
What is gui programming?
What does index mean in java?
What is remote method invocation (rmi)?
What environment variables are required to be set on a machine in order to run Java programs?
Why java is secure? Explain.
What is JVM and is it platform independent?
What is the full form of jpeg?
Can static methods be inherited?