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
Does java runtime require a license?
Why do we use regex?
Why hashcode is used in java?
What is an exception in java?
What does it mean that strings are immutable?
Why are getters and setters used?
What does three dots mean in java?
Explain how can you debug the Java code?
What is pangram in java?
What is your platform’s default character encoding?
Explain method local inner classes ?
Why is the singleton pattern considered to be an anti pattern?
Explain java heap space and garbage collection?
Can we able to pass objects as an arguments in java?
How much ram can a 64 bit processor theoretically?