This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes I/O and Streams and the fly likes Why are Iterators non-serializable? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "Why are Iterators non-serializable?" Watch "Why are Iterators non-serializable?" New topic
Author

Why are Iterators non-serializable?

Satya Maheshwari
Ranch Hand

Joined: Jan 01, 2007
Posts: 368
Hi
I am not sure why Iterators in Collections framework are non-serializable? Is it wrong design to have my own iterator which extends serializable interface?

TIA
Satya Deep


Thanks and Regards
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41182
    
  45
What would it mean to have the Iterator serializable, since you can't force the underlying collection to be serialized at the same time?


Ping & DNS - my free Android networking tools app
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Why are Iterators non-serializable?
 
Similar Threads
Enumerations Vs Iterators
Questions on serializable and deserializable understanding
states of stateful session bean
Question about ejbActivate and ejbPassivate
iterator