Where can local variables declared within a method’s body be used? (A) Only in that method between the line in which they were declared and the closing brace of that method.(B) Same as (a), but not within while or if statements.(C) Only within while or if statements within the method in which they were declared.(D) Anywhere within the class.

Respuesta :

Answer:

A

Explanation:

we can declare local variables in a method in the class. The scope of the variable is from the point where it declared to the end of the program

The answer is A