Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

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: a
Explanation: Only one copy of static variables are created when a class is loaded. Each object instantiated has its own copy of instance variables.

Join The Discussion