• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Regarding Connection interface

 
Kiran Baratam
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All
I have a doubt regarding connection interface.I am using connection interface to create statement.Connection is an interface and i am calling a method on interface and my work is getting done.I know it must have implemented by some lower lever classes and conncetion interface is abstracting all of them.I wanted to know how is it working and what is happening when i say
Statement stmt = connection.createStatement();
i am not able to understand this.
Please help me.
Kiran
 
Rajasekar Kayamboo
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The connection interface will be iomplemented by the driver. The implementors of the JDBC drivers write the methods that give you back the java.sql.COnnection object.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic