Explain the use of Clonable,and serializable interface.The similarity of Clonable and Serializable interfaces is that they both are marker interfaces.
Clonable: It is just an indicatory that a class is to use clone() method of the Object class to copy the instance of a particular class.
Serializable: An object of a class is converted into byte stream and persisted in a local disk. It is useful to send the objects in a network as a byte stream. Another network could convert the byte stream into Object of a particular class type.