作者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