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 mechanism does java use for memory management?
What is e in java?
What is string manipulation?
Why do we need singleton?
Is java owned by oracle?
What is an immutable object?
Why is string builder not thread safe?
How do you override a private method in java?
What are data types in oop?
What is meant by null and void?
What is a lightweight component?
Is age a discrete variable?
Explain about automatic type conversion in java?
What is subsequence of a string?
What are the advantages of user defined functions?