Westonci.ca connects you with experts who provide insightful answers to your questions. Join us today and start learning! Explore thousands of questions and answers from a knowledgeable community of experts on our user-friendly platform. Get quick and reliable solutions to your questions from a community of experienced experts 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