A、public final int writeObject(Object obj) throws IOException
B、public final void writeObject(Object obj) throws IOException
C、public Object writeObject(Object obj) throws IOException
D、public final Object writeObject(Object obj) throws IOException
查看答案
正确答案
试题解析
解析:writeObject()方法的正确定义为: public final void writeObject(Object Obj) throws IOException。即B选项的定义是正确的。