Win a copy of High Performance Python for Data Analytics this week in the Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Jj Roberts
  • Carey Brown
Bartenders:
  • salvin francis
  • Frits Walraven
  • Piet Souris

K&B question page507 #15

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Bert,

K&B book, Page 507, #15 the answer is C,F.
I am wondering the statement F is true or not:

F. In order to alter the standard deserialization process you would override the readObject() method in SpecialSerial.

The readObject() method signature would be:


I think the statement violate the override rules:
1.There is no super class have this method, no in Serializable
2.private method not inherit, so can't be override
3.override method can't have less accessable

Best,
Yue
 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yue

Have a look at the following link

Serializable (Java 2 Platform SE 5.0)

Dave
[ January 12, 2007: Message edited by: David Grindley ]
 
YUE ZHU
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi David,
I looked at the link you provided, but don't found any override words.

I do know follow the Serializable contract, but I just don't buying
that is an override method.

Best,
Yue
reply
    Bookmark Topic Watch Topic
  • New Topic