Advertisements
Advertisements
Question
Variable that is declared within the body of a method is termed as ______
Options
Instance variable
class variable
Local variable
Argument variable
MCQ
Fill in the Blanks
Solution
A variable that is declared within the body of a method is termed a Local variable.
Explanation:
Local variables are variables that are defined within the body of a method and are only available within the scope of the method.
shaalaa.com
Is there an error in this question or solution?