"What you don't know, can't help you"
SCJP (81%), SCWCD (81%), SCJD (354/400), SCBCD (85%)
"What you don't know, can't help you"
SCJP (81%), SCWCD (81%), SCJD (354/400), SCBCD (85%)
The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
"What you don't know, can't help you"
SCJP (81%), SCWCD (81%), SCJD (354/400), SCBCD (85%)
"What you don't know, can't help you"
SCJP (81%), SCWCD (81%), SCJD (354/400), SCBCD (85%)
The specs, however, clearly state that:
"The client program should include a class that implements the same public methods as the suncertify.db.Data class (...)"
The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
"What you don't know, can't help you"
SCJP (81%), SCWCD (81%), SCJD (354/400), SCBCD (85%)
Originally posted by Klaas van Gelder:
Hi Andrew,
I am afrain i do not exactly understand what you mean. You talk about a facade on the client side, so I guess you use the original methods in the Data class and the Adapter class (which calls the lock methods).
I think that is what Andrew meant. If its a remote client, it goes through RMI metthods, if its local it directly calls Data class methods. Please correct me if I'm wrong? Thanks.
Those methods then form the new "public interface" of the Data class (again, there is no spec telling us that the orinal public methods may not be altered)
Its not advisable to change given public interface. There are many threads on this topic whether to change or not, but many people stick with not modifying given interface.
So to summarize, the issues are:
- May the public interface Data class be modified ?
As said above, not adivsable
"The client program should include a class that implements the same public methods as the suncertify.db.Data class (...)"
"What you don't know, can't help you"
SCJP (81%), SCWCD (81%), SCJD (354/400), SCBCD (85%)
I'm thinking about a new battle cry. Maybe "Not in the face! Not in the face!" Any thoughts tiny ad?
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
|