View Single Post
  #2 (permalink)  
Old 11-06-2007, 10:11 PM
hardwired hardwired is online now
Senior Member
 
Join Date: Jul 2007
Posts: 1,222
hardwired is on a distinguished road
Can we serialize arrays?
You could create an ArrayList with an array. ArrayList is also serializable.
Otherwise, probably.
If yes, then of which type?
Possibly most any.
You might be able to make a class (implementing Serializable) to do the serializing for you; it could specify the array type and include the necessary methods to read and write the array. Or you could have the array (whose type implements Serializable) and the methods included in another class. This is speculation: I have never tried these.
Object Streams
Reply With Quote