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 the symbol for space?
Why are generics used?
Write a program based on Java script program.
What are different types of expressions?
What does @override mean?
Can we have two methods in a class with the same name?
What is nextline method in java?
What do you mean by constant time complexity?
What is consumer in java?
What is a nested class?
Explain listiterator and methods in listiterator?
In a container there are 5 components. I want to display the all the components names, how will you do that one?
Why destructor is not used in java?
What is "this" keyword in java? Explain
What is meant by design patterns?