May 24, 2019 in JAVA
Q:

What is meant by Local variable and Instance variable?

Local variables are defined in the method and scope of the variables that have existed inside the method itself.

An instance variable is defined inside the class and outside the method and scope of the variables exist throughout the class.

Related questions

0 votes
May 24, 2019 in JAVA
...