During serialization, if I'm implementing my own writeObject & readObject methods then which method should I use to read a
String.
Please view the following code:
Here I've written a String using writeChars() methods while serializaing object. But there is no similar method while reading object during de-serialization.
Can anyone help me out in same.
NOTE - I know that we can do same using defaultWriteObject()/defaultReadObject() methods. But I intentionaly want to go this way. Please provide a solution in the same context.