The previous edition used to be known as "Max's book", so I suppose "Andrew's book" would work (although not being technically correct).
I have been reading the book "SCJD Exam with J2SE 5" (2nd edition Andrew Monkhouse and Terry Camerlengo).
First question - is there a commonly accepted abbreviation for 'that' book on this forum?
As mentioned in the book, we constantly had to think about how we could present information to you, the reader, that would help you with your assignment without actually giving away the real solution. One of the areas that was hardest for us was how close we could get to the real design decisions and real methods of the Data class. Where possible, we noted where we were deliberately deviating from what might be considered desirable in the real assignment.
I think I understand your point that the design decisions made in the book, for a fictional assignemnt, might not be relevant to my assignemnt and they may not be the best choices.
Correct. The UPC identifies the DVD from a manufacturer's standpoint: that is, each copy of "Finding Nemo" will have the same UPC. In real life we would probably want some way to identify who rented the DVD, but that would have been taking us either beyond the scope of our sample assignment (requiring an aditional 'database table'), or back into the problem of getting too close to the real assignment if we had some way to identify the renter for each individual DVD.
The book says that the upc is a unique product code so i guess multiple copies of the Finding Nemo DVD would have the same UPC. The DVD class outlined in p122 indicates that a DVD instance includes an attribute 'copies' i.e. the number of copies of the DVD. So this means that each copy of the DVD is 'not' a separate record and all copies are locked together so that concurrent decrementing/incrementing is avoided.
We've gotta get close enough to that helmet to pull the choke on it's engine and flood his mind! Or, we could just read this tiny ad:
Thread Boost featurehttps://coderanch.com/t/674455/Thread-Boost-feature