It's not a secret anymore!
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes SCJD score question 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 "SCJD score question" Watch "SCJD score question" New topic

SCJD score question

Sagar Salapaka

Joined: Feb 06, 2002
Posts: 12
I received my SCJD score this week (passed with a score of 354/400):

General Considerations (maximum = 100): 99
Documentation (maximum = 70): 70
O-O Design (maximum = 30): 30
GUI (maximum = 40): 31
Locking (maximum = 80): 44
Data store (maximum = 40): 40
Network server (maximum = 40): 40

I am somewhat disappointed because I don't think I missed anything with my locking approach. Can someone help me find out? Is it possible the assessor made a mistake?

Here is how I implemented locking on the client side:

a) lock the record and get a lock cookie
c) read the record and ensure it is not booked
d) book the record using the lock cookie
e) unlock the record using the lock cookie

Server has a class that manages record locks using a HashMap<Long, Long> such that only one client can have a lock to a record at any given time.

lock (record number):
a) wait if the record is already locked
b) generate a random number for the lock cookie
c) add to the hash map with record number and lock cookie
d) return the lock cookie

unlock (record number, lock cookie):
a) check if the record is currently locked. if not, return
b) verify that the lock cookie matches the cookie in the hash map for this record. if not, throw a security exception
c) remove the record number entry from the hash map
d) notify others waiting on this record

I would appreciate any pointers you can provide. Thank you.
Andrew Monkhouse
author and jackaroo
Marshal Commander

Joined: Mar 28, 2003
Posts: 11778

You might want to look at The Mysterious 44/80 Locking score.

Regards, Andrew

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

Joined: Feb 06, 2002
Posts: 12
Thanks Andrew, I /do/ check if the record is already booked [and throw RecordNotFoundException] after locking. And since all updates to the database go through this lock/unlock sequence, I am still not sure why I got dinged.
Sagar Salapaka

Joined: Feb 06, 2002
Posts: 12
I sent an email to Sun regarding this. Here is the response from Sun Certification Customer Support:

Thank you for contacting Sun Certification Customer Support. We apologize for our delay in responding to your inquiry.

Unfortunately, we do not review assignments that have passed. Both the SCJD assignment and SCEA assignment are essentially pass or fail because we do not release your score when verifying your certification status.

This pass or fail scoring is further emphasized with the new SCEA 5 assignment. You will only receive a numeric score for this assignment if you fail. Passing assignments are not given a score at all for the SCEA 5.

We have adopted this grading policy primarily because some employers had begun requesting the scores of certified candidates. While we do not release this information, we wanted to take additional steps to ensure that the score information was not being used as a hiring criteria.

We regret any inconvenience you may experience as a result of this issue.

Please let us know if we may be of further assistance.

I am over this now. I am posting it here for the benefit of anyone interested.
I agree. Here's the link:
subject: SCJD score question
It's not a secret anymore!