Ask Question

Local variables:

A. Lose the values stored in them between calls to the method in which the variable is declared

B. May have the same name as local variables in other methods

C. Are hidden from other methods

D. All of the above

+1
Answers (1)
  1. 16 August, 23:44
    0
    The correct answer for the given question is Option (D).

    Explanation:

    A local variable is those which are declared inside the method. The scope of the local variable is local means it will access only that function. They are not accessed outside the function.

    There are some features of Local variable which are given below:

    The local variable is hidden from the other function. The local variable sometimes have same name as the global variable

    So all Option (a), Option (b) and Option (c) are correct.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Local variables: A. Lose the values stored in them between calls to the method in which the variable is declared B. May have the same name ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers