作者qrtt1 (null)
看板java
标题Re: [问题] Java传object
时间Tue Dec 21 02:09:38 2010
◆ From: 118.161.186.177
1F:→ calais007:没有implement serializable吧,工作後都写C++,有点忘了 12/20 22:55
2F:→ m13m13m:no...我不是要传自己想做的物件 我是要传 socket soc; 12/21 00:40
3F:→ m13m13m:的soc object 12/21 00:42
4F:→ qrtt1:办不到 12/21 02:02
http://download.oracle.com/javase/1.5.0/docs/api/java/io/Serializable.html
Serializability of a class
is enabled by the class implementing the
java.io.Serializable interface. Classes that
do not implement this interface
will not have any of their state serialized or deserialized.
All subtypes of
a serializable class are themselves serializable. The serialization interface
has no methods or fields and serves only to identify the semantics of being
serializable.
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 218.161.126.96
5F:→ calais007:不懂为什麽要传socket =.=,很神密的需求 12/24 18:50