1.

What Is The Process Of Making A Class Serializable?

Answer»

To create a class serializable there is mechanism of SERIALIZING an object on the client code. 

There are four things that are required to make a class serializable and these are: 

  • The first thing that has to be done is to implement the serializable interface that makes the process easy to convert the set of object references to the linear STREAM of bytes.
  • Check whether the instance level that is locally defined state is in SERIALIZED mode or not. Check that it has been implemented PROPERLY or not.
  • Check whether the superclass state in the serialized phase is properly managed and adjusted. If it is adjusted then with the help of few function the process can create a class serializable.
  • Then use the methods like equals( ) and hashCode( ) to override the already USED functions. This will allow the addition of new code to be inserted

To create a class serializable there is mechanism of serializing an object on the client code. 

There are four things that are required to make a class serializable and these are: 



Discussion

No Comment Found