Originally posted by Raffe Paffe:
Kevin, My question is : Can I manage without
implementing anything in the Data lock/unlock methods?
Raffe,
No one here can answer that question for you. Some people have refused to implement
lock/unlock in Data, and done well on the exam.
However, most of those people will admit that this is not a strict reading of the requirements.
Others, and I fall into this category, read the requirements strictly, and implemented
lock/unlock in the data class.
On the one hand, Sun probably will not fail you if don't implement lock/unlock in data.
on the other, they could chose to, because you didn't follow directions, and they would
be within reasonable behavior to do so.
Since the logic of the code is the same, I would suggest that stick with the strictest
definition. They said to implement lock/unlock in Data, so do what they asked.
That way, you can't be faulted.
All best,
M, author
The Sun Certified Java Developer Exam with J2SE 1.4
[ March 10, 2003: Message edited by: Max Habibi ]