Say I have a class:
And a collection class of Requests:Code:class Request implement java.io.Serializable { // attributes User reqUser = new User(...); Location reqLoc = new Location(...); Priority reqPr = new Priority(...); Domain reqDom = new Domain (...); }
Questions:Code:class RequestColl { Vector RequestList = new Vector(); // will hold Requests }
1) Can i directly serialize RequestList and expect all the Requests it holds to be serialized?
2) If I serialize each Request instance on its own, must the classes it has as its attributes implement Serializable as well? Etc
Thanks a lot!Code:class Domain implements Serializable {...}
[ArchAngel added CODE tags]


Reply With Quote



Bookmarks