English

A method body is enclosed within a pair of: - Computer Applications

Advertisements
Advertisements

Question

A method body is enclosed within a pair of:

Options

  • {}

  • []

  • ()

  • Under a rectangular box

MCQ

Solution

{}

Explanation:

  1. In Java, a method's body is wrapped behind curly brackets {}.
  2. Everything inside these braces defines the statements that will be performed when the method is invoked.
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 I. 8. | Page 335
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×