Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Sysncronization

 
Saman Perera
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi ALL

normally when we pass a object from one stream to another(or in application to database server) we state that class is implement sysncronize interface

is this wrong what is the proper way to pass objct on layer to another

thaning you all

saman
 
Rovas Kram
Ranch Hand
Posts: 135
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you meant Serializable not Sychronizable, the short answers is yes. Maybe you don't know that you should implement Serializable when you want your objects to be written to disk or sent across the network. You must also make sure that each attribute of your class refers to an object whose class implements Serializable or your attribute should be declared 'transient'. Does this answer your question? If not, maybe you can tell us what you're trying to do...
[ August 09, 2004: Message edited by: Rovas Kram ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!