Pergunta de entrevista da empresa Oracle

Write a object onto file using serailization, Had to write the code.

Resposta da entrevista

Sigiloso

16 de dez. de 2013

File f= new File("file name"); Objectouputstream oos= new ObjectOutpuStream(new FileOutPutstream(f)); oos.writeObject(objectName); ---- write the Entity class which implements Serializable and has Default constructor.