Serialization
posted 17 years ago
I got this from a mock exam.
The output of the above code is "pcp"..why it is not "pc"?
Thanks,
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
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
posted 17 years ago
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
Debashree Halder
Ranch Hand
Posts: 81
posted 17 years ago
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
I got this from a mock exam provided by Kathy Sierra and Bert Bates.
Refer to the following link:
SCJP Mock Exam 1.5
Refer to the following link:
SCJP Mock Exam 1.5
Debashree Halder<br />SCJP 1.5<br />Washington DC
posted 17 years ago
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
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 ]
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
Posts: 81
posted 17 years ago
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
I got it...Thanks! 

Debashree Halder<br />SCJP 1.5<br />Washington DC
| You have to be odd to be #1 - Seuss. An odd little ad: The new gardening playing cards kickstarter is now live! https://www.kickstarter.com/projects/paulwheaton/garden-cards |








