Instance Variables:
- Associated with an object or instance of a class.
- Each instance has its own set of instance variables.
- Exist throughout the lifetime of the object.
- Accessed using object references.
Local Variables:
- Declared within a method or block of code.
- Limited to the scope where they are declared.
- Exist only during the execution of that method or block.
- Accessed only within the method or block where they are declared.
Riya Answered question September 7, 2023