. Differentiate between instance and local variables.
Answer Posted / 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 View All Answers
What is the use of keywords in java?
How can you avoid serialization in child class if the base class is implementing the serializable interface?
Is intellij better than eclipse?
how can you take care of mutual exclusion using java threads? : Java thread
What is classname class in java?
Java is pass by value or pass by reference? Explain
What happens when you add a double value to a string?
What do you understand by private, protected and public?
What is ‘is-a ‘ relationship in java?
Can you add null to a list java?
Write the algorithm to check the number non-leaf nodes in a tree.
How many types of exception can occur in a java program?
What is the difference between a field variable and a local variable?
Why is the type for real numbers called double?
What super () does in java?