Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 469 Bytes

File metadata and controls

18 lines (13 loc) · 469 Bytes

##Seralization

  • The process of writing state of ab object to a file is caleed seralization
  • using ObjectOutStream(FileOutPutStream f) class we can achieve serialization
FileOutputStream fos = new FileOutputStream("abc.txt", true);
ObjectOutputStream oos = new ObjectOutputStream(fos);

oos.writeObject(object)
FileInPutStream fos = new FileInPutStream("abc.txt", true);
ObjectInputStream oos = new ObjectInputStream(fos);

oos.readObject()