I have a question about the Interface Sun provided. When I implements RMI, I reliased that i need to thorw RemoteException for all method in the SUN provide interface.
What i am wondering is that can i change interface?? can i throw more exceptions in the sun provided interface?
The one of the must conditions is the original interface should not be altered. You can extend the interface and throw your own exceptions and rmi exceptions.
Simply... No. I mean if you add custom exceptions then you are now programming to an implementation rather than an interface (if you are confused or unsure or never ehard that OO principle, I can suggest Head First Design Patterns). [ November 30, 2008: Message edited by: Justin Rundle ]
So it takes a day for light to pass through this glass? So this was yesterday's tiny ad?