. 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 |
int a=1,b=10; System.out.println(a+b--);
Can a private method of a superclass be declared within a subclass?
Can we override private method in java?
Can an integer be null java?
What is a super class and how super class be called?
what is multitherading
What is dynamic binding?
What is the difference between static and non-static variables in java programming?
What is size_t?
What is the difference between an argument and a parameter?
What is get () in java?
garbate collector(GC)?