T
Tung Chau
Hi,
I know this is a silly question, but I am so confused. When should I
make my Java class implement Serializable? I understand the basic idea
of Serialization and Synchronization. However, I don't know when I
should use them. In a web application which does not use EJB, should I
make my class Synchronized or Serialized? Would that slow down the
software? Is that necessary though? I thought that the synchronization
and concurrency are taken care in the DBMS already, unless we want to
build a distributed software.
Please help me clear this up.
Thanks alot.
Hongvan Nguyen
I know this is a silly question, but I am so confused. When should I
make my Java class implement Serializable? I understand the basic idea
of Serialization and Synchronization. However, I don't know when I
should use them. In a web application which does not use EJB, should I
make my class Synchronized or Serialized? Would that slow down the
software? Is that necessary though? I thought that the synchronization
and concurrency are taken care in the DBMS already, unless we want to
build a distributed software.
Please help me clear this up.
Thanks alot.
Hongvan Nguyen