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 is the use of static class?
What is derived datatype?
Why does java have two ways to create child threads?
Explain try and catch keywords in java?
What are the legal operands of the instanceof operator?
How do you classify Dialog Box?
What is classes in java?
What occurs when an object is constructed?
Differentiate storage classes on the basis of their scope?
Does list allow duplicates in java?
Difference between method overloading and method overriding in java ?
How dead lock situation occurs in java and how you can identify it?
Which one of the following suits the description of a string better: derived or primitive?
What are memory tables?
What is a method vs function?