IDNLearn.com connects you with a community of experts ready to answer your questions. Join our interactive Q&A community and access a wealth of reliable answers to your most pressing questions.

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

Your participation is crucial to us. Keep sharing your knowledge and experiences. Let's create a learning environment that is both enjoyable and beneficial. Find clear answers at IDNLearn.com. Thanks for stopping by, and come back for more reliable solutions.