There are many people that use
Java to connect to databases, and do other work. There are many places where this would come up, but I suggest that as a beginner you just remember that code can synchronize of a variety of Objects.
Synchronization can lock if you try to do this:
Are you just studying, or do you have a real coding context for the question.
[ October 03, 2007: Message edited by: Nicholas Jordan ]