DEVFYI - Developer Resource - FYI

What is the difference between a field variable and a local variable?

Java Interview Questions and Answers (part 2)


(Continued from previous question...)

303. What is the difference between a field variable and a local variable?

A field variable is a variable that is declared as a member of a class. A local variable is a variable that is declared local to a method.

(Continued on next question...)

Other Interview Questions