Andrey Dmitriev wrote: Try "com.model.NewsController"
But without success...
Al Hobbs wrote:So you catch the exception and then it doesn't come back as the right type of exception or what? I don't think the Constraint violation is thrown inside the method which is why you aren't catching it. Maybe I don't understand what your problem is.
Joe Harry wrote:Any idea as to why the JDBC API is added as part of the exam?
Henry Wong wrote:If you haven't already guessed, synchronization is cooperative. The only way for one thread to prevent another thread from doing something, is for both threads to try to obtain the same lock -- the block is at the point of trying to obtain the lock (when the other thread owns it). A thread that doesn't synchronize can do whatever the thread wants to do.
Joey Sanchez wrote:
I don't understand why the first print line is 987.12346, what happened with the number 5?
Could someone explain this?
Thanks in advance!
Pi Xel wrote:B. Class BeSafe can create many instances of SafeDeposit. <---- I don't think so.....
So on the one hand you have the book saying that many instances can be created, and then on the other hand, saying that private int code cannot be changed (Which is the result of only being able to have one instance, not many)