Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Plz help me............

 
sapana jain
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am trying the code for serialization from K&B but it is not running.
the page no. are 445 to 447.
 
Deepak Jain
Ranch Hand
Posts: 637
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Make sure.
1. All the classes implement "Serializable" interface. Parent, Child classes and if any other classes that the class references to.
2. Make sure readObject() is invoked in the same order in which writeObject was invoked.
Here is the code that i tried and it works fine.


Thanks
Deepak
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15207
36
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by sapana jain:
i am trying the code for serialization from K&B but it is not running.
the page no. are 445 to 447.

When you ask a question, tell the details - explain exactly what you are doing and what error messages you get. What does "it is not running" mean?

Also, please use a meaningful subject line instead of "Pl z help me.....". Imagine what the forum would look like if everyone would only use "Help!", "Please...", "Problem!" etc.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic