• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Doubt regarding java.sql.Connection and java.sql.Statement interfaces

 
Mansukhdeep Thind
Ranch Hand
Posts: 1158
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

These 2 interfaces in the java.sql.* package provide us with methods to create a connection with a db and execute SQL statements respectively. But we know that the methods in an interface do not have any implementations. My question is where and how are these methods (like execute(boolean String sql)) implemented. We are using them to perform DB operations alright. But where is the concrete implementations of the methods of these interfaces?
 
Ivan Jozsef Balazs
Rancher
Posts: 979
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the database driver.

There are different drivers for the databases: zero, one or more for every database.
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
go through Ernest's reply in this (<= click) discussion . hope that will clear your doubt
 
Mansukhdeep Thind
Ranch Hand
Posts: 1158
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Seetharaman Venkatasamy wrote:go through Ernest's reply in this (<= click) discussion . hope that will clear your doubt


Yes, I read that. Thanks..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic