English

Variable that is declared within the body of a method is termed as ______ - Computer Applications

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?
2021-2022 (April) Set 1
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×