JPMorganChase interview question

How to create immutable classes in Java?