Hi All this is me again..
The below code compiles and runs fine.
public class
Test {
public static void main(
String[] args) {
int[ ] b = { 2, 3, 1, 0 };
Object o=new Object();
o=b;
}
}
Now my point is there any practical use of converting object to array type becoz we r not even able to access array members(like length) with reference -o
though both o & b referencing to the same object(i.e int array)
Thanks
rishi