A local variable is one that is declared inside a method or constructor as opposed to an instance variable, which is one that is declared in a class but outside of a method. So, the major distinction between an instance variable and a local variable is this.
Vishalini.R Answered question September 7, 2023
				