Barclays Interview Question

Basic java questions(hash map ,arraylist)explaination