This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Plz help me............ Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Plz help me............" Watch "Plz help me............" New topic
Author

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

sapana jain
Ranch Hand

Joined: Oct 24, 2007
Posts: 42
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

Joined: Aug 05, 2006
Posts: 637
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


SCJP, SCWCD, SCBCD
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14952
    
  26

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.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
 
Have you checked out Aspose?
 
subject: Plz help me............
 
It's not a secret anymore!