java source to implement serializable interface  to create binary files

serializable interface is used to create the binary file for the given features/inputs of an object.
classes used are FileOutputStream ObjectOutputStream