Your exam is probably going to be about Design Patters, so I recommend that you go ahead and study design patters in details. A good book for this is Objects, Components , Models and Patterns with ISBN 9783540698234. Please make sure to study all the patterns in detail since is mostly theory. If you need examples go to wikipedia or other sources those are very helpful to understand the theory. I am sure you will get the point if someone here points you out the answer, but what the teacher is looking is for you to understand the concept.
If this is an exam about JDBC instead, then getting the answer from here will not be a big problem. I hope you do well in your exam.