Cisco interview question

How made in java immutable object?