Issues regarding exception handling between Interface and implementation class
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

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?

About | Sitemap | Contact