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 ?");


Answers were Sorted based on User's Feedback



Statement, PrepareStatement and Callable all these are interfaces. Thought it is a interface how c..

Answer / 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

Statement, PrepareStatement and Callable all these are interfaces. Thought it is a interface how c..

Answer / brahma

Driver vendor provides implementation classes for these
interfaces.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More JDBC Interview Questions

How can we retrieve the file in the oracle database?

0 Answers  


What is the role of the jdbc drivermanager class?

0 Answers  


How can I use the JDBC API to access a desktop database like Microsoft Access over the network?

0 Answers  


How do I set properties for a JDBC driver and where are the properties stored?

0 Answers  


code to insert values/rows into oracle database from a java swing textfield when a button is pressed(using preparedstatements)

0 Answers  


Is it possible to connect to multiple databases? Using single statement can we update or extract data from two or three or many databases?

0 Answers  


How is jndi useful for Database connection?

1 Answers  


Differentiate between a statement and a preparedstatement.

0 Answers  


What does the jdbc databasemetadata interface?

0 Answers  


How many packages are available in jdbc api?

0 Answers  


What is difference between odbc and jdbc?

0 Answers  


What is xe in oracle jdbc url?

0 Answers  


Categories