DEVFYI - Developer Resource - FYI

What is local variable

J2SE Interview Questions and Answers


(Continued from previous question...)

150. What is local variable

A data item known within a block, but inaccessible to code outside the block. For example, any variable defined within a method is a local variable and can't be used outside the method.

(Continued on next question...)

Other Interview Questions