Vrinda,
As for the Certification exam, it is very important to remember
Arrays can be cast to a clonable interface. As Milind said, the Cloneable interface has no methods. It serves as a kind of tag to help JVM detect legal clones.
Expect questions in the exam where an array is cast to a cloneable interface.
<PRE>
public class CastArray
{
public static void main(
String[] s)
{
String firstQuarter[] = {"Jan", "Feb", "March"};
Cloneable c = firstQuarter ;
}
}
</PRE>
Well, this code does nothing, however it compiles fine
In the real world, Cloneable can be a very useful interface. You can implement "deep copy" of the objects in your system by using the Cloneable interface and providing a clone() method implementation in your objects. Remember when you say Obj1 = Obj2, you are only copying references. Unless you implement your own cloning, there is no way to produce replicates of your objects with state information.
Hope this helps.
Ajith