. 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 |
What is method in java with example?
Explain an intermediate language?
What is array in java?
Why there are some null interface in JAVA? What does it mean? Give some null interface in JAVA?
Can abstract class have private constructor?
What is the use of TL?
How many techniques can be employed to create a string object?
Can we restart a dead thread in java?
Why stringbuilder is not thread safe in java?
How do you compare objects in java?
What is the maximum size of byte array in java?
java is pure object-oriented programming language?why it is platform independent.