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
How to sort an unsorted array in java?
Why java is said to be pass-by-value ?
What is ternary operator in java?
Why java is call by value?
What is the numeric promotion?
Can we pass null as argument in java?
Can I overload to string method
What is the purpose of void class?
How do you ensure that n threads can access n resources without deadlock?
What is thread safe java?
What is static keyword?
What is finalize() function in java?
What is the difference between jdk and jre?
What is the difference between scrollbar and scrollpane?
Name few "optional" classes introduced with java 8 ?