Barclays interview question

Basic java questions(hash map ,arraylist)explaination