How many copies of a static variable will exist in memory?
it depends on how many number of objects you are creating for that class. That many copies will be there.
No matter how many objects you create for that class, only one copy of static variable will be created.
Back To Top