aspose file tools*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Can you change existing signatures or not? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Can you change existing signatures or not?" Watch "Can you change existing signatures or not?" New topic
Author

Can you change existing signatures or not?

Melinda White
Greenhorn

Joined: Jun 19, 2002
Posts: 25
Yikes! I am just starting and cannot move forward until I understand whether or not you can change existing signatures. For example, the assignment gives me three new methods to implement. Their signature includes an int for the record number. The RHE book says in one place that part of this exam is to workaround less than ideal code that's already been written. Then in another place (page 607 More on Exam Requirements), they say you CAN change existing code.
I've played around with RMI and threads but cannot implement anything at all until I resolve this question. Any thoughts? Please - this is a general question - not just about record number, but about all the existing code. E.g. if you wanted to, could you change the way they implemented some method, or would you have to work around the way they wrote it to begin with?
Thanks in advance for your help to a greenhorn.
Melinda
John Smith
Ranch Hand

Joined: Oct 08, 2001
Posts: 2937
There have been a lot of discussions here about whether we can (or should) modify the existing code. I think the consensus is that all the existing code is perfect (and should not be modified), except possibly for the signatures (and location) of the lok() and unlock() methods. It turns out that you can pass the exam with good marks if you modify the code, and if you don't modify the code. It all comes to how well you justify your design decisions in the design document that you send in along with your completed assignment.
Eugene.
Eugene.
Melinda White
Greenhorn

Joined: Jun 19, 2002
Posts: 25
Thanks Eugene.
Melinda
Alex Gregory
Ranch Hand

Joined: Jun 15, 2002
Posts: 46
I think the spirit of the assignment is to work with what you have. Changing lock() and unlock() signatures might be a good idea depending on whether you want to use client ids, for example, but personally i think its best to not modify existing code, and to at most modify method signatures. Doing things from the ordinary just gives you greater risk of loosing points.
Melinda White
Greenhorn

Joined: Jun 19, 2002
Posts: 25
thanks Alex!
Melinda
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Can you change existing signatures or not?
 
Similar Threads
How to avoid dead lock?
lock and unlock
Obtaining recNo from JTable - wrapping recNo in Room Object(UrlyBird)
NX: URLyBird questions about database
No need for a locking manager?