I currently have the below code, In it I want my ArrayList<Device> contents put into an XML file but I'm getting a Errorjava.io.NotSerializableException on my Dvd and CD classes. I cant seem to find the problem if anyone can help that would be great.
Luk Lukach wrote:It is an empty interface,so you don't need to worry about it.
This is a big mistake. You should think long and hard about implementing Serializable. It imposes lots of limits on your class, and exposes a lot of its internals to the outside world. To date, I haven't written a single class that implemented this interface and that left a good taste in my mouth.
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop