Jefferies Interview Question

Java and Spring MVC questions: 1. How are beans instantiated in spring 2. How many times a bean can be initialized. How many beans are created? 3. What is the difference between array list and has map. Will hash map accepts duplicates and how it know if it has duplicates. 4. How will you use Junit framework for writing test classes.