This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes JDBC and Relational Databases and the fly likes Iimplemenatation classes of Connection,Statement,PrepareStatement,CallabaleStatement? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "Iimplemenatation classes of Connection,Statement,PrepareStatement,CallabaleStatement?" Watch "Iimplemenatation classes of Connection,Statement,PrepareStatement,CallabaleStatement?" New topic
Author

Iimplemenatation classes of Connection,Statement,PrepareStatement,CallabaleStatement?

Satyajeet Kadam
Ranch Hand

Joined: Oct 19, 2006
Posts: 224
Q1)Where is the implemenatation of Connection,Statement,PrepareStatement,CallabaleStatement?
Jeevan Reddy
Ranch Hand

Joined: Nov 10, 2009
Posts: 142
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.


SCJP 1.6 (94%)
http://faq.javaranch.com/java/JspFaq
Satyajeet Kadam
Ranch Hand

Joined: Oct 19, 2006
Posts: 224
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.

Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 32644
    
216

Yes. As Jeevan said, the implementation is provided by the jdbc driver jar.

DriverManager provides a reference to the class, not the implementing class.


[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Iimplemenatation classes of Connection,Statement,PrepareStatement,CallabaleStatement?
 
It's not a secret anymore!