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 is string builder in java?
What is a module function?
What are the differences between Java 1.0 and Java 2.0?
How will you compute size of a structure?
What is null mean in java?
What is default exception handling in java?
Can we write method inside a method in java?
Differentiate between run time error and syntax error.
What is the final access modifier in java?
What is object in java?
What is the difference between a checked and an unchecked exception?
What is the epoch date?
How do you achieve singleton?
Explain the use of shift operator in java. Can you give some examples?
Can we override compareto method?