Help coderanch get a
new server
by contributing to the fundraiser
  • 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
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

Sun's provided interface DB

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

Would it be allowed to change or add methods in the provided DB interface by Sun?


I see some reactions yes, some no, but I'm not sure this can become an automatic failure when delivering your code in the end....

As I see it, I think it's prescribed, you can't change it, only add new methods in a class that implements the DB interface. but that seems a bit like a tricky workaround...

What do you think?
What do you know (people who have delivered)?

Thanks,
Josine
 
Ranch Hand
Posts: 146
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I personally did not change the supplied interface, because the instructions say dont. Sometimes situations will arise in which you have to just work with what's there - I think SUN are testing your ability to do this.

You should be able to use an adapter to work around any (deliberate) limitations in the supplied interface...
 
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you change the interface, you will fail.

I added extra methods to the class that inherited from the interface.Yes thats a little tricky and unclean, especially when you use RMI.
 
Ranch Hand
Posts: 918
IntelliJ IDE Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi josine,

I have two arguments :
1.Sun has some tests which fit exactly the DBMain interface. If you change the interface they must change the test(s) and this for each scjd candidate, and
this make them not so happy.
2.Is like in the the real life the specs(from sun) are the client requirements, you must fulfill them otherwise you may lose your customer.

Regards M.
 
Ranch Hand
Posts: 1847
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The requirements document explicitly list "MUST implement the FOLLOWING interface". That means you MUST use that precise interface either directly or indirectly but you cannot change it (else it would no longer be that interface).
 
reply
    Bookmark Topic Watch Topic
  • New Topic