• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Interfaces in JDBC

 
J Venkatesh
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We all know that to establish a connection to a
database we follow the steps like loading the driver ,etc.
As connection,statement and resultset are all interfaces how can we create objects of it and
access the methods of those interfaces ? ? ?
J Venkatesh
 
cardwell cupp
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is a shot in the dark, but...
Each database driver implements the interfaces of conncection, resultset, and statement. As far as creating instances of these object, we have to use functions like DriverManager.getConnection(), conn.createStatement(), and so on.
Cardwell
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic