. 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
Why collection doesn’t extend cloneable and serializable interfaces?
What are the 4 types of characters?
What are different types of constants?
How does linkedhashmap work in java?
What is the difference between access specifiers and access modifiers in java?
Why is singleton class used?
Explain inner classes ?
What is a boolean structure?
Can a class have multiple subclasses?
how to create multithreaded program? Explain different ways of using thread? When a thread is created and started, what is its initial state? : Java thread
What is the maximum size of arraylist in java?
Why is stringbuffer faster than string?
What is the difference between error and an exception?
Similarity and difference between static block and static method ?
How are the elements of a gridbaglayout organized in java programming?