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.

for example: oracle
all the methods implemented in OracleStatement class.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a merge field?

942


Does jdbc require oracle client?

936


How to invoke Oracle Stored Procedure with Database Objects as IN/OUT?

1097


What is jdbc oracle thin?

880


What are the three basic components of the odbc architecture?

933


How to check jdbc driver version in websphere?

1098


What is the meaning of batch updates?

1096


What are the 4 types of jdbc drivers?

1019


What are temp tables ?

987


There is a method getColumnCount in the JDBC API. Is there a similar method to find the number of rows in a result set?

1048


Can resultset be null in java?

933


How do I know which jdbc driver to use?

1019


Which type of JDBC driver is the fastest one?

1094


What do you mean by odbc?

1033


What is jdbc stand for?

937