Java Code to demonstrate Object Serialization in Java