Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Statement, PrepareStatement and Callable all these are
interfaces. Thought it is a interface how come we are
creating objects and calling methods("preparestatement()")
in it. In which class this method is defined.
Please let me know. Thanks in advance.

example:
PreparedStatement pre = con.prepareStatement(
"UPDATE COFFEES SET SALES = ? WHERE COF_NAME LIKE ?");


Answer Posted / brahma

Driver vendor provides implementation classes for these
interfaces.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When do we use execute method in java jdbc?

969


Explain the difference between rowset vs. Resultset in jdbc?

980


What is difference between statement and preparedstatement in jdbc?

888


How do I find whether a parameter exists in the request object?

897


What is the function of drivermanager class?

1077


What is the most common example type 1 driver?

1015


What is setautocommit in jdbc?

904


Explain about the drive manager class working?

1083


Where is mysql jdbc driver located?

1012


Which interface handles transaction management in jdbc?

1087


What is jdbc driver?

895


What is the execute method in java?

986


How do I insert an image file (or other raw data) into a database?

946


What is the fastest type of JDBC driver?

1043


Which is faster jdbc or odbc?

881