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.
Hi Friends, I have a small query worth mentioning in this forumn.
We all know Connection (java.sql) is an interface. Then how can we call a method like close() on an interface reference. I mean where are these methods being referred from..Any1 knowing the reason for the same kindly help me...
We can do this because we are actually calling a method against the interface implementation not the interface direct. The implementation of the Connection interface is part of the JDBC driver you are using.