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 are different types of ResultSet?

1000


What is a JDBC 2.0 DataSource?

931


What is the difference between execute, executeQuery, executeUpdate?

965


What is the function of setautocommit?

1152


What is the execute method in java?

950


What is jdbc databasemetadata interface?

999


Is jdbctemplate thread safe?

862


What are the jdbc drivers in java?

988


What is serialization and deserialization in java programming?

918


Define preparedstatement.

934


What is the difference between executing, executequery, executeupdate in jdbc?

952


Explain about multiple implementations and drive manager?

993


What are database warnings in jdbc and how can we handle database warnings in jdbc?

946


How can you know about drivers and database information ?

951


Where is jdbc url mysql?

922