English

A method body is enclosed within curly brackets. - Computer Applications

Advertisements
Advertisements

Question

A method body is enclosed within curly brackets. 

Options

  • True

  • False

MCQ
True or False

Solution

This statement is True.

Explanation:

In Java, method bodies are always wrapped behind curly brackets {}. This is where the method's claims and logic are written. 

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. 5. | Page 335
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×