IDNLearn.com connects you with experts who provide accurate and reliable answers. Get accurate and detailed answers to your questions from our dedicated community members who are always ready to help.

how many copies of each static variable and each class variable are created when 10 instances of the same class are created

Sagot :

Answer:

Static variables are initialized only once

Explanation:

Only one copy of static variables are created when 10 objects are created of a class

A static variable is common to all instances of a class because it is a class level variable