aspose file tools*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Serialization 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 "Serialization" Watch "Serialization" New topic
Author

Serialization

Debashree Halder
Ranch Hand

Joined: Jul 27, 2005
Posts: 81

I got this from a mock exam.
The output of the above code is "pcp"..why it is not "pc"?

Thanks,


Debashree Halder<br />SCJP 1.5<br />Washington DC
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18714
    
  40

Please Quote Your Sources.

Thanks,
Henry


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
Debashree Halder
Ranch Hand

Joined: Jul 27, 2005
Posts: 81
I got this from a mock exam provided by Kathy Sierra and Bert Bates.
Refer to the following link:

SCJP Mock Exam 1.5
Djonatah Stiegler
Ranch Hand

Joined: Oct 30, 2008
Posts: 32
ok, here you go:

This is the rule:

If an object implements the Serializable interface its constructor will not run when it is deserialized. But if any of its superclass doesn't implement that interface the super constructor will always run when the object is deserialized.

Is it clear?
Thanks

[ November 20, 2008: Message edited by: Djonatah Stiegler ]
[ November 20, 2008: Message edited by: Djonatah Stiegler ]

From Brazil
Debashree Halder
Ranch Hand

Joined: Jul 27, 2005
Posts: 81
I got it...Thanks!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Serialization