asked 89.4k views
2 votes
When an object is instantiated, it receives its own copy of all static variables of the class?

1 Answer

5 votes
No.

A static variable belongs to the class, not an instance of it. Therefore there only exists one copy of said variable at any given time.
answered
User Abhishek V
by
7.9k points