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 the difference between int and integer in java?
What is data string?
What do you mean by singleton class in java?
What is one third plus one third as a fraction?
What is the use of singleton class?
What are the main uses of java?
Do loops java?
Define how can we find the actual size of an object on the heap?
What is procedure writing?
Can we use string in switch case in java?
How can I debug the Java security exceptions and AccessControlExceptions?
What are the 6 functions?
What are use cases?
What is meant by flickering?
What is the impact of declaring a method as final?