
A Useful Method of the ObjectInputStream Class
Return value Method name and argument list
Object readObject( )
reads the next object and returns it.The object read must be an
instance of a class that implements the Serializable interface.
When the end of the file is reached,an EOFException is thrown.
Also throws an IOException and ClassNotFoundException.
ObjectOutputStream
Package: java.io
Description: writes objects in a serialized format to a file
Constructor
ObjectOutputStream( OutputStream out )
creates an ObjectOutputStream that writes to the OutputStream
out.Throws an IOException.
A Useful Method of the ObjectOutputStream Class
Return value Method name ...