This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
Just a short question: The DBClient class detailed in the Developer book by M. Habibi doesn't seem to throw RemoteException for its methods. This causes problems when trying to to compile the implementation class for the Remote interface extending DBClient. Would it be correct (in terms of design) to amend the abstract methods in DBClient to throw RemoteException so that this exception can be thrown in the above-mentioned implementation class? Is the omission of 'RemoteException' from the DBClient interface a typo or am I missing something? Thanks in advance Bob
I compiled the sampleproject in the book. Everything was fine. I don't know what happens in your case... Regards
Joined: Jan 15, 2002
My mistake...DBClient's methods throw IOException thereby alowing the methods from the implementation class for the remote interface to throw RemoteException (a subclass). Didn't think it through at the time of asking the question I guess