In this Programming article I will discuss what is Singleton Design pattern. I will also show you how to create a Singleton class in Java without using any framework like Spring.
Posts Tagged ‘java’
HashMap is one of the most useful collections in Java. It allows you to store Object against a key, which again can be any type of Object. Here I will show how to iterate through a HashMap, which is populated with number of objects.