InterviewSolution
Saved Bookmarks
| 1. |
How many copies of static and class variables are created when 10 objects are created of a class?(a) 1, 10(b) 10, 10(c) 10, 1(d) 1, 1 |
|
Answer» Correct option is (a) 1, 10 The best I can explain: Only one copy of static variables are created when a class is loaded. Each object instantiated has its own copy of instance variables. |
|