Hi Zeeshan,
Not sure there is a quick rule of thumb
I took a look in the class libraries and spotted the following:
Classes implementing Serialiazable:
- File
- ObjectStreamClass
- Throwable (all Errors and Exceptions inherit from Throwable so they are all serializable)
- All the wrapper classes: Boolean, Byte, etc
- String and StringBuffer
- the Collection classes
For Cloneable, all arrays, and most, if not all the Collection classes.
Hope that helps.
------------------
Jane Griscti
Sun Certified Programmer for the Java� 2 Platform