The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
Data class (40 points)
I am curious, does your version of assignment instructs you to define the lock/unlock methods in the Data class?
The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
public void unlock(int recNo, long cookie) throws RecordNotFoundException, SecurityException;
Originally posted by Eugene Kononov:
Aha, that's something completely new, -- now a cookie is supposed to identify the client? I suppose Sun is pushing for a particular design so that it is easier for them to grade the solutions.
Eugene.
The marking is done in three phases. First, software checks that overall structure and nomenclature conform to specification. Second the examiner runs the code ensuring that it functions correctly through the specified operations. If any automatic failures are noted at this stage, the marking process terminates and the assignment is failed.
Originally posted by Ta Ri Ki Sun:
yep, and i dont know if marking was always like this, but based on the following i can see how the cookie and the data class being implemented in that way makes it easier to grade the solutions.
Originally posted by Michael Dreese:
Hi,
Would you mind to tell us more about the implementation? I don't know how to generate the unique cookie for lock method.
Cheers,
Michael
Originally posted by Ta Ri Ki Sun:
my new assignment no longer has a cookie, except for the magic cookie value which identifies the files as a data file, but that has nothing to do with the previously mentioned cookie.
are you sure you're using you're new instructions file?
Originally posted by frank sun:
I also don't have a cookie file, so where can I find the magic number? and how?
best regards!
Frank
Originally posted by Michael Dreese:
My DB interface has those cookie for lock/unlock/write methods. My intstruction file hasn't changed since first I downloaded. Did yours change? I hope there is no cookie for those methods.
Cheers,
Michael
Don't get me started about those stupid light bulbs. |