. 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 java Don't Support Multiple interitence

8 Answers   ABC, Exilant, IBM,


What is get () in java?

0 Answers  


What do you mean by Remote procedure call?

2 Answers  


What are the features in java?

0 Answers  


Mention some interfaces implemented by linked list in java.

0 Answers  






Can we have any code between try and catch blocks?

0 Answers  


Difference between error and exception

3 Answers   Nous, TCS,


Can constructor be static or final?

0 Answers  


What’s the difference between callable and runnable?

0 Answers  


What is meant by Encapsulation? Can you write a class to explain encapsulation?

8 Answers   Ness Technologies,


Why stringbuilder is not thread safe in java?

0 Answers  


How to pass arraylist to stored procedure in java?

0 Answers  


Categories