Advertisements
Advertisements
Question
A method cannot be defined without parameters.
Options
True
False
MCQ
True or False
Solution
This statement is False.
Explanation:
In Java, a method can be declared without any parameters. These methods are known as parameterless methods because they can still conduct actions even when no arguments are passed to them.
shaalaa.com
Is there an error in this question or solution?