Clear my doubt on Interface

Hi,

When a class implement an interface,the method of the class should thorugh the same exception or any of its subclass exception or any different exception,as that of the exception declared on the abstarct method of the interface.

Please any one solve my doubt as early as possible.

Thanks

Vish

[327 byte] By [vishuwillbea] at [2007-11-27 11:38:36]
# 1

> Hi,

> When a class implement an interface,the method of

> the class should thorugh the same exception or any of

> its subclass exception or any different exception,as

> that of the exception declared on the abstarct method

> of the interface.

>

Is this supposed to be multiple choice?

The easiest way for you to answer this question is to try it out yourself in code.

cotton.ma at 2007-7-29 17:21:11 > top of Java-index,Java Essentials,Java Programming...
# 2

The implementing method can only throw exceptions listed in the interface method, but it doesn't have to.

malcolmmca at 2007-7-29 17:21:11 > top of Java-index,Java Essentials,Java Programming...