When the variable scope is available only within the method where it is defined, then that variable is called as a local variable. State true or false.
Answers
Answered by
6
True
Explanation : When the local variable is created inside a method, constructor, or block, their scope only remains within the method, block, or constructor. They are visible only within the method, constructor, or block. As you exit from the method or block then the scope of a local variable is destroyed.
Similar questions