class hello
{
}
class hello1
{
public static void main(String aa[])
{
hello ob[]={new hello(),new hello(),new hello()};
hello ob1[]=ob.clone(); // 1
}
}
ob is an array which is also treated as an object, and hence has a default clone method which is called at (1). But the default clone method returns an Object reference, so that should not be assignable to an array of type hello. But its being assigned here to an array of hello type without errors. Why ?