Differences between instance variable local variable and static variable
Answers
Answered by
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
Chemistry,
6 months ago
Chemistry,
6 months ago
Math,
6 months ago
Computer Science,
1 year ago
English,
1 year ago