Infosys interview question

Collection of java describe them