case 1.
class A extends java.util.ArrayList
{
public static void main(String[] args)
{
ArrayList a=new ArrayList();
}
}
Here I am getting a compiletime error saying,
cannot find symbol
Symbol:class ArrayList
location:class A
case 2.
class A extends java.util.ArrayList
{
}
This one is compiling successfully.
Then what's the need of extending ArrayList class? If we can't make use of it (as in case 1)?