A variable declared inside a method is called
-
a. local variable
-
b. global variable
-
c. static variable
-
d. private variable
A
Correct answer
Explanation
Variables declared inside a method have local scope - they exist only within that method's block and are not accessible outside. They're created when the method is called and destroyed when it returns. Global variables exist at class/file level, static variables persist across instances, and private is an access modifier, not a variable classification.