Question: what is the difference between a field and a local variable?
Answer: 6 Answers. A local variable is defined within the scope of a block. ... An instance field, or field, is a variable that's bound to the object itself. I can use it in the object without the need to use accessors, and any method contained within the object may use it.