• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

Iimplemenatation classes of Connection,Statement,PrepareStatement,CallabaleStatement?

 
Ranch Hand
Posts: 224
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Q1)Where is the implemenatation of Connection,Statement,PrepareStatement,CallabaleStatement?
 
Ranch Hand
Posts: 142
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It is provided in the jdbc jar provided by different vendors oracle, db2 etc.
If you have the software, you can open the jar and see the implementation for them.

Regards,
Jeevan.
 
Satyajeet Kadam
Ranch Hand
Posts: 224
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Connection con=DriverManager.getConnection();

Q1) From DriverManager class we are Connection object.Do DriverManager class provides implementation of it?
Reason behinng asking this question i was asked interview.Where are implementation classes. If there is interface someone has provide implemntation for
it.

 
author & internet detective
Posts: 42145
937
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes. As Jeevan said, the implementation is provided by the jdbc driver jar.

DriverManager provides a reference to the class, not the implementing class.
 
reply
    Bookmark Topic Watch Topic
  • New Topic