. 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
What are singleton services?
What is byte data type?
Why does it take so much time to access an applet having swing components the first time?
which one is more efficient int x; 1. if(x==null) 2.if(null==x) state which one either 1 or 2?
What do you understand by the term polymorphism?
What are the common uses of "this" keyword in java ?
Is it possible to use Semaphore/ Mutex in an Interrupt Handler?
How can you make a class serializable in java?
Is it possible to specify multiple jndi names when deploying an ejb?
How transient variable is different from volatile variable?
What are the advantages of passing this into a method instead of the current class object itself?
Why java is considered as platform independent?
What are the steps involved to write rmi based programs?
What is numeric data type?
If an object reference is set to null, will the garbage collector immediately free the memory held by that object?