Toshiba Interview Question

Write singleton class. WAP to find one defective ball out of 9 balls. Reverse a string. How HashMap works in Java? Difference between HashMap and Hashtable what is Concurrent HashMap? What is hibernate and what is advantage of using hibernate?