aspose file tools*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes URLyBird: Question about start Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "URLyBird: Question about start" Watch "URLyBird: Question about start" New topic
Author

URLyBird: Question about start

XU JUN
Greenhorn

Joined: Sep 03, 2004
Posts: 2
Hello, every one.
I received my URLyBird assignment recently. but I got Question about it. Hope you help me.

(1) Could I modify interface DB provided by Sun ( Sun don't say that you must not modify DB interface. but I can't confirm it.)

(2) I want use RMI for network.
if I can modify DB, How to implement RMI.
else if I can't modify DB, How to implement RMI.

I want your suggestion.
Thanks.
mike acre
Ranch Hand

Joined: Sep 23, 2003
Posts: 197
You can not modify it.
They say you must implement it, if you change it, you will not be implementing what they supplied.

RMI will have nothing to do with the class that implements DB.

Were you planning on writing just one class for your application?


SCJP 1.4, SCJD
Andrew Monkhouse
author and jackaroo
Marshal Commander

Joined: Mar 28, 2003
Posts: 11508
    
  95

Hi Xu,

Welcome to JavaRanch and this forum.

The common consensus is that you should not modify the provided interface. An interface is a contract between you and the users of your classes. If you modify the interface, you are changing the contract. If the user has written code based on your expected interface then their programs will not work. (To put that in more concrete terms, you possibly have a statement in your instructions telling you that when your assignment is being marked, "software checks that overall structure and nomenclature conform to specification" - this automated testing could fail if you change the interface.)

Regards, Andrew


The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
XU JUN
Greenhorn

Joined: Sep 03, 2004
Posts: 2
Thanks mike and Andrew

Thanks to your indicate, I avoid a fatal mistake.
 
 
subject: URLyBird: Question about start