Which variables have a scope limited to a method?
A. Interface variables
B. Class variables
C. Instance variables
D. Local variables
Answer:
D. Local variables
Explanation:
In Java, only local variables have such a small scope, making Option D the correct answer.