aspose file tools*
The moose likes Java in General and the fly likes why it is Serializable and Cloneable are more difficult to implement when inheritance is present Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "why it is Serializable and Cloneable are more difficult to implement when inheritance is present" Watch "why it is Serializable and Cloneable are more difficult to implement when inheritance is present" New topic
Author

why it is Serializable and Cloneable are more difficult to implement when inheritance is present

anarkali perera
Ranch Hand

Joined: Sep 10, 2009
Posts: 237
i found from web that Serializable and Cloneable are more difficult to implement when inheritance is present ?
why ?
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 36579
    
  16
Where did you see that?
anarkali perera
Ranch Hand

Joined: Sep 10, 2009
Posts: 237
LOOK this link

http://www.javapractices.com/topic/TopicAction.do;jsessionid=69C23CA4366A6DD9DC9863137A9552E6?Id=72




[henry: removed unneeded code tags]
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18138
    
  39

Yeah, maybe it would be good not to use that site. It seems to make vague statements, with little context, and little proof to backup those statements.

Henry


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

Joined: Sep 10, 2009
Posts: 237
ok.can anyone tell me the good site for java best practises?
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 36579
    
  16
anarkali perera wrote:ok.can anyone tell me the good site for java best practises?
Try this site.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: why it is Serializable and Cloneable are more difficult to implement when inheritance is present
 
Similar Threads
class not getting compiled
implementing of interface
Why is clone method present in Object if I have to implement Cloneable interface to use it?
Doubt on clone() method
Implementing stock methods