142k views
3 votes
A special variable that holds a value being passed into a method is called what? A. Modifier B. Parameter C. Alias D. Argument

User Masoom
by
6.1k points

1 Answer

4 votes

Answer: B) Parameter

Step-by-step explanation:

A parameter is declare in the method of parameter variable scope. It refers to the list of special variable in the method declaration and we can use any type of data type for parameters in this method.

On the other hand, modifiers use static header method that is available outside the class.

Argument pass actual values when the method is invoke and we can use construct to pass the arbitrary number in method.

Therefore, option (B) is correct.

User Yuriko
by
5.8k points