| Author |
HFE page 72
|
pradeep arum
Ranch Hand
Joined: Oct 01, 2003
Posts: 130
|
|
this question was raised by Torean ...I spent quite a bit of time to solve it & came up with a question on values() from hashmap returns a collection, what we can do is to fill the returned collection into an arraylist to make the objects surely serializable as the book says, but my question is ? i went through the AbstractList class and it does not implement the serializable interface ,may be that is why the returned collection be fed into a known collection implementing class(to make sure that the classs is serializable), but the book says in 72-page that all collection implementations are serializable ? please help me & Torean thanks
|
SCJP1.4,SCBCD
Failure is not when you fall down; its only when you fail to get up again.
|
 |
Thomas De Vos
stable boy
Ranch Hand
Joined: Apr 12, 2003
Posts: 425
|
|
I'm not too sure what is mentioned in the book. All the implementation classes of the Collection interface implements the Serializable interface. Have a look to the JDK API doc for HashSet, TreeSet, HashMap, ArrayList, etc.
|
Try your free <a href="http://www.javacertificate.com" target="_blank" rel="nofollow">SCJP 1.4</a> certification centre.<br />Try your free <a href="http://www.j2eecertificate.com" target="_blank" rel="nofollow">SCWCD</a> certification centre.<br />Try your free <a href="http://www.ejbcertificate.com" target="_blank" rel="nofollow">SCBCD</a> certification centre.<br />Try your <a href="http://www.webspherecertificate.com" target="_blank" rel="nofollow">Websphere (Test 285) </a> certification centre.<br />Try your <a href="http://www.j2mecertificate.com" target="_blank" rel="nofollow">SCMAD</a> certification centre. (New)<br /> <br /><a href="http://blogs.javacertificate.com" target="_blank" rel="nofollow">Java/J2EE Certification Blogging</a>
|
 |
 |
|
|
subject: HFE page 72
|
|
|