asked 24.9k views
2 votes
What is the difference between instance variables and static variables?

asked
User Oldovets
by
7.4k points

1 Answer

4 votes

Answer:

Explanation:

Instance variables are created when an object is created with the use of the keyword 'new' and destroyed when the object is destroyed. Static variables are created when the program starts and destroyed when the program stops

answered
User TacheDeChoco
by
8.3k points

No related questions found

Welcome to Qamnty — a place to ask, share, and grow together. Join our community and get real answers from real people.