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

User Jamie Aden
by
8.5k points

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.
User Abhishek V
by
8.1k points