title: Why can't we serialize the methods in Java?
body: <p>Serialization is a mechanism of storing the state of an object. Based on this definition we can say that the instance variables in an object can be serialized. 
  Methods are behaviors of the class. <br/></p>
  
  <p>We can set and get the state of an object using the methods. So the methods are related to the instance variables of the class. </p>
  
  <p>Then why can't we serialize the methods in Java ?</p>