Ask Question

When an object is instantiated, it receives its own copy of all static variables of the class?

+2
Answers (1)
  1. 8 July, 05:03
    0
    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.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “When an object is instantiated, it receives its own copy of all static variables of the class? ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers