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
Is main is a keyword?
What is ++ a in java?
Can we force the garbage collection to run?
why Java does not support multiple inheritances?
Give us a program to check for parenthesis matching using stack.
Is array size fixed in java?
How does java enable high performance?
Is empty in java?
What is the size of arraylist in java?
What does null mean in java?
What is array length?
What is the maximum size of arraylist in java?
Why wait and notify methods are declared in object class?
What is use of arraylist in java?
What is finalize method?