. Differentiate between instance and local variables.



. Differentiate between instance and local variables...

Answer / nashiinformaticssolutions

For instance, variables are declared inside a class, and the limited to only a specific object.
A local variable can be anywhere inside a method or a specific block of code. Also, the scope is limited to the code segment where the variable is declared.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

Why does java not support operator overloading?

0 Answers  


What is the best definition for data?

0 Answers  


What does g mean in regex?

0 Answers  


What is internal variable?

0 Answers  


What does percent mean in java?

0 Answers  


What is an example of a constant variable?

0 Answers  


write java code to print second max number in the array

12 Answers   Huawei, IBAB,


Is java a virus?

0 Answers  


What are the elements of java?

0 Answers  


What is identifier give example?

0 Answers  


How do you override a private method in java?

0 Answers  


What is string pool in java?

0 Answers  


Categories