单项选择题

以对象为单位把某个对象写入文件,则需要使用什么方法?()

A.writeInt()
B.writeObject()
C.write()
D.writUTF()