posted 19 years ago
Hi,
If the type of the object is AnInterface,the method declaration in that interface has throws clause.Hence the compiler complains.
If the type of the object is AnInterfaceImpl, the method declaration in that class doesn't have the throws clause.so the compiler doesn't complain.
-vinu.