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 you use this() and super() both in a constructor?
What will be the initial value of an object reference which is defined as an instance variable?
Define max and min heap, also the search time of heap.
Write a java program to count the number of words present in a string?
Can we define static methods inside interface?
What kind of variables can a class consist?
Is an integer an object?
Explain the difference between an object-oriented programming language and object-based programming language?
Which non-unicode letter characters may be used as the first character of an identifier?
What is the name of the java compiler?
Can an interface implement another interface?
What is the driver class?
What is adapter in java?
explain multi-threading in java?
Why is method overloading not possible by changing the return type in java?