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
Can we declare array without size in java?
How do you access command-line arguments within the code?
Can array grow dynamically in java?
Can we have any code between try and catch blocks?
Can list be final in java?
What is the purpose of main function in java?
What is meant by interface?
What is oop principle in java?
how is final different from finally and finalize in java?
How do you compare values in java?
What is command line argument
What is main method?
What is passing value java?
Name few java util classes introduced with java 8 ?
What is adapter in java?