J2SE Question:
Download Questions PDF

What is local variable?

Answers:

Answer #1
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.

Answer #2
When a variable defined by inside of the class is called local variable.

Download J2SE Interview Questions And Answers PDF

Previous QuestionNext Question
What is member class?What is linker?