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
Science,
5 months ago
Social Sciences,
5 months ago
Computer Science,
10 months ago
English,
1 year ago