This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
You are not creating an object in this statement, You are declaring a variable con that can later hold an object that implements the interface Connection.
Later in your code, you will not use: con = new Connection(), but something else. What are you doing: you are asking your database driver to give you an object that implements the Connection interface.
It's a good idea to set a breakpoint in this line of code, and see what class this object actually is.
[corrected my typo: Connection class - doh] [ August 27, 2007: Message edited by: Jan Cumps ]