Methods that use writeObject and readObject must either throw IOException and ClassNotFoundException or deal with those exceptions in trycatch statements.
writeObject
readObject
IOException
ClassNotFoundException
try
catch