Infosys interview question

basic core java questions, how to create immutable class