Various examples on Singleton pattern using Java