. 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 meant by controls and types?
What are different types of constants?
What are the common uses of "this" keyword in java ?
Differences between C and Java?
What is the effect of keeping a constructor private?
Give me example of derived data types.
What happens if main method is not static?
The class "Class" is belongs to which package?? a) java.lang b)java.lang.reflect c)java.util d)None
Is integer immutable in java?
How is java hashmap implemented?
What are predefined functions?
Does it matter in what order catch statements for filenotfoundexception and ioexception are written?