• Post Reply Bookmark Topic Watch Topic
  • New Topic

ArrayList

 
John King
Ranch Hand
Posts: 165
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is ArrayList serializable?

If yes, is it still serializable after I put an object
that did not implements Serializable interface?
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24213
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, it's serializable -- that's easy enough to determine from the Javadoc. If you store a non-Serializable object in an ArrayList, then try to Serialize it, you'll get a NotSerializableException .
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!