Advertisements
Advertisements
Question
A method body is enclosed within a pair of:
Options
{}
[]
()
Under a rectangular box
MCQ
Solution
{}
Explanation:
- In Java, a method's body is wrapped behind curly brackets {}.
- 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?