Pregunta de entrevista de Barclays

Basic java questions(hash map ,arraylist)explaination