Posted By:
Abhishek_Kundu
Posted On:
Saturday, May 2, 2009 10:19 AM
Code snippet:
interface Base
{
void show() throws Exception;
}
class Derived implements Base
{
public void show()
{
System.out.println("hi");
}
}
The method implemented is not throwing any exception.Still the code compiles.
Can anybody explain me why?