English

A method cannot be defined without parameters. - Computer Applications

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?
Chapter 5: User - Defined Methods - EXERCISES [Page 335]

APPEARS IN

Avichal Computer Applications [English] Class 10 ICSE
Chapter 5 User - Defined Methods
EXERCISES | Q III. 4. | Page 335
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×