Capgemini interview question

class n object in java and mostly collections