Home » JAVA Programming » Modifier Types » Question
  1. How many copies of static and class variables are created when 10 objects are created of a class?
    1. 10, 10
    2. 10, 1
    3. 1, 10
    4. 1, 1
    5. None of these
Correct Option: C

Only one copy of static variables is created when a class is loaded. Each object instantiated has its own copy of instance variables.



Your comments will be displayed only after manual approval.