I want to write an Object to a stream , for which ifound ObjectOutputStream.Just wondering if i can use this class to writeobjects of any class (I wish to write the objects of aclass written by me).