. 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
If we don’t want some of the fields not to serialize how to do that?
What is an empty class? What functionality does it offer in Java?
In the below example, what will be the output?
Can we write multiple catch blocks under single try block?
What is the disadvantage of synchronization?
What do you mean by buffering?
Explain the difference between call by refrence and call by value?
Explain the meaning of java applet.
Can an abstract class be a final class?
What is the use of static methods?
Hi i am creating desktop application in that i want calling to mobile number. i have java telephone api (JTAPI) but i dont understand how it configure & use plese help me
What do u mean by variable?
Can we define private and protected modifiers for variables in interfaces?
how many types of Inheritance?
What are different types of inner classes ?