Why cant we define System.out.println() inside a class
directly?
Answer Posted / venkatachalapathy
we Directly write this line i.e System.out.println()
directly inside a class because println method is static
method in output stream class which are sub classes of
system class.
so every time this method is overridden in our program....
so static methods doesnt require a creation of object.....
| Is This Answer Correct ? | 3 Yes | 3 No |
Post New Answer View All Answers
What is diamond operator in java?
What is == and === in javascript?
Tell me a few examples of final classes defined in Java API?
What is thread safe java?
Is age discrete or continuous?
What do you understand by private, protected and public?
What does || || mean in math?
Is java free for businesses?
What is the difference between sleep and wait in java?
Convert Binary tree to linked list.
What is var keyword ?
What is difference between final and finally in java?
How does java enable high performance?
What are the different types of methodologies?
What is difference between arraylist and list in java?