Computer Science, asked by akashakki8631, 1 year ago

Differences between instance variable local variable and static variable

Answers

Answered by eburcham58
2

Answer:

Local variables are not visible outside the method. Instance variables are declared in a class, but outside a method. ... Class/static variables are declared with the static keyword in a class, but outside a method. There is only one copy per class, regardless of how many objects are created from it.

Explanation:

Similar questions