View RSS Feed

Recent Blogs Posts

  1. Saving objects to file

    by , 11-10-2011 at 05:39 PM (My Java Tips)
    Sometimes it is useful to store objects in files which can be read later. Object is saved along with its state. Simply saying, an object with its data can be saved in a file. Objects are made persistent this way.

    The class whose object is to be saved should implements Serializable interface. We as a programmer are not supposed to add any method. The purpose of implementing interface is to tell the Java run time, which classes are to be serialized.

    Serializable interface ...