why java deserialisation from a file gives null object? code example Example: when to use serializable in java serialize(empObj);