Which of the following method components is optional a argum

Which of the following method components is optional? a. argument list b. body c. header d. closing curly brace The ___ is placed immediately before the method name in a declaration. a. access modifier b. return type c. parameter name d. parameter type

Solution

16. Answer is option a, argument list is optional.

The argument list is also called as parameters. You can pass the parameter list by reference or by value. If a method does not have any parameter, then only a pair of empty parenthesis is used.

17. The answer is option a,access modifier.

there are four types of access modifiers,

 Which of the following method components is optional? a. argument list b. body c. header d. closing curly brace The ___ is placed immediately before the method

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site