Package Sample;
public
Class Sample
{
Public static void main (string [] args)
Throws Exception
{
Java.io.ObjectOutputStream OS = New java.io.ObjectOutputStream (New java.io.fileoutputstream ("Object.out"));
Os.WriteObject ("Hello World.");
Java.io.objectInputStream is = new java.io.ObjectInputStream (New java.io.fileinputStream ("Object.out"));
System.out.println (is.readObject ());
}
}