• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Can i modify the interface sun providing

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

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?

Cheers
 
Ranch Hand
Posts: 334
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 123
Hibernate Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic