G
Gordon Beaton
Lets say I create a Vector that has class cast of holding Strings. I
then store that Vector to disk via ObjectStreams and FileStreams.
When I retrieve the Vector later. Will the Class casting survive the
storage process?
I know I could do an experiment to find this out, but I am also
looking for resoning behind the behaviour of the language.
Thanks for any help you can give in this matter.
Realize that casting doesn't actually change the type of any objects,
so the objects you insert into the vector continue to be whatever they
were before you inserted them.
Your vector will contain the same kinds of objects after
reconstruction as it did before.
/gordon