In this post I explain how to create only one object of a java class, then a single instance is available in the application.
An object of this type is called singleton and a starting class can be the following:
Categories
In this post I explain how to create only one object of a java class, then a single instance is available in the application.
An object of this type is called singleton and a starting class can be the following: