Westonci.ca makes finding answers easy, with a community of experts ready to provide you with the information you seek. Connect with a community of experts ready to help you find solutions to your questions quickly and accurately. Get immediate and reliable solutions to your questions from a community of experienced professionals on our platform.

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