In this,Connection,Statement and resultset are all interfaces.And moreover,the methods such as createStatement(),executeQuery() are all empty only in Connection Interface and Statement Interface respectively.
Being a method which is defined in interfaces are empty or abstract by default,
if that is the case ,How can we use these here. (createStatement(),executeQuery())?
Where and all the implementation of these methods..
Pls explain these....
Warm Regards, Senthan.
posted 10 years ago
Implementation's for these interface are found in runtime library (rt.jar in jre/lib).
essentialy loads this library.
This is beauty of programing to interface. This way your code is independent of database. you can substitude with driver for any database.