CodeSteps

Python, C, C++, C#, PowerShell, Android, Visual C++, Java ...

atomic integer

Getting count of objects of a class in Java!

The following article explains how to maintain reference count of objects whenever instance of a class is created. Some times it will be useful to get to know the number of instances are created for a class; this article will be useful. Step (1). Create your own class and make sure add the following private […]

Scroll to top