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

Expalin the method of calling a stored procedure from jdbc.

1014


Why is jdbc needed?

974


Does jdbc require oracle client?

987


Which type of driver is unique in jdbc?

1031


How do I connect to jdbc?

985


Which is faster jdbc or odbc?

956


Can I enable requests to a jdbc connection pool for a database connection to wait until a connection is available?

967


What are the jdbc api components?

1206


What is jdbc and why is it required?

976


Why can't I invoke the ResultSet methods afterLast and beforeFirst when the method next works?

1262


Does jdbc use odbc?

1078


How do java applications access the database using jdbc?

1086


What is a datasource in java?

1010


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

967


What are collection pools?

1025