J2SE Question:

Download Job Interview Questions and Answers PDF

What is local variable?

J2SE Interview Question
J2SE Interview Question

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?