. 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 |
Explain java heap space and garbage collection?
Can you explain the Java thread lifecycle?
Why non nested classes in java are not having marked as protected access specifier
Say any two properties in beans?
What is the difference between Object and Instance?
What is the purpose of the system class in java?
What is a package?
What is aggregation and composition ?
C and C++ has constructors and distructors, why does Java does not have distructors?
define System.out.println(); what is the meaning!
explain the concept of virtual method invocation in polymorphism in detail?
What is java argument list?