Originally posted by Jmannu gundawar:
In the MAX's DVD project, the code listing is as follows:
public interface DBClient {
(methods decleared here do not throw RemoteExceptions)
}
Then there is another interface created for the RMI (remote) package:
public interface DVDDatabaseRemote extends Remote, DBClient {}
The class DVDDatabaseImpl in the remote package is decleared as:
public class DVDDatabaseImpl extends UnicastRemoteObject implements
DVDDatabaseRemote {
Now the DBClient methods implemented in this class throws the RemoteException, where as the methods decleared in the interface dont.
How is this possible?
Why does it not give a compile time error,as the overridden methods (methods decleared in the interface) do not throw this exception??
If I try to implement interface method in the class, I get compile time error if class's method's throw the RemoteException and Interface method is not decleared to throw that exception.
Please help.
Thanks,
Manoj
[ October 20, 2003: Message edited by: Jmannu gundawar ]