ragi singh wrote:Hi all ,
i have a doubt , according to the serialization rules the subclass of the class implementing serializable interface is also serializable , then why does my subclass require me to give it a serialversionUID .
OCPJP 6.
In Your Pursuit Towards Certification, NEVER Give Up.
Ernest Friedman-Hill wrote:Note that it's allowed -- some might say even encouraged -- to learn stuff that isn't on the exam. If you're very careful to only learn stuff that's on the exam, then frankly, you'll be ill-equipped for your first job.
Jackzia wrote: Hello Ernest, thank you for adding that, I was about to modify mine, it is VERY true, thats my 'Modus-Operandi'. However I thought it was a good idea that he is aware that serialization was NO longer there.
OCPJP 6.
In Your Pursuit Towards Certification, NEVER Give Up.
ragi singh wrote:according to the serialization rules the subclass of the class implementing serializable interface is also serializable , then why does my subclass require me to give it a serialversionUID .
Ernest Friedman-Hill wrote:Note that it's allowed -- some might say even encouraged -- to learn stuff that isn't on the exam. If you're very careful to only learn stuff that's on the exam, then frankly, you'll be ill-equipped for your first job.
SCJP 6. Learning more now.
Spot false dilemmas now, ask me how!
(If you're not on the edge, you're taking up too much room.)
SCJP6, SCWCD5, OCE:EJBD6.
BLOG: http://leakfromjavaheap.blogspot.com
| Did you see how Paul cut 87% off of his electric heat bill with 82 watts of micro heaters? |