Why cant we define System.out.println() inside a class
directly?
Answer Posted / madhu
We can't because The method signature matters when you are
declaring the method. we can't give a name with
System.out.println, but we can define println()
| Is This Answer Correct ? | 4 Yes | 3 No |
Post New Answer View All Answers
What does the exclamation mark mean in java?
Is it possible to write a regular expression to check if string is a number?
we have syntax like for(int var : arrayName) this syntax is to find whether a number is in the array or not.but i want to know how to find that number's location.
Can we overload the methods by making them static?
Can arraylist hold different types java?
What is array command?
What does compareto () do in java?
What is close method? How it's different from Finalize & Dispose?
Under what conditions is an object’s finalize() method invoked by the garbage collector?
Is oracle java 11 free?
What is a arraylist in java?
What is a vector in java?
What is local class in java?
What is diamond operator in java?
Can final class have constructor?