View RSS Feed

My Java Tips

  1. Serializing Arrays

    by , 11-10-2011 at 05:08 PM (My Java Tips)
    We already know that we can serialize object of classes that implement serializable interface. Make a class that implements serializable interface, make an object of it and save it to disk. You may retrieve to confirm that the object has the required data or not. Vector class also implements serializable interface, so you can also store vectors on disk.

    How about Arrays?

    Arrays are of some type. Thing to note is which classes implement Serializable interface. Integer, ...
    Java SE