make all class serializable java at once code example Example: when to use serializable in java serialize(empObj);