preparedstatement p= new preparedstatement
is it possible ?

Answer Posted / sivam

No. Because PreparedStatement is an interface. we can not
create direct object instance in this interface, but we can
create reference.

ex:

PreparedStatement pst=con.PrpareStatement("Query");

Is This Answer Correct ?    12 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why did my jdbc code throw a rollback sqlexception?

516


How does jdbc work?

511


How to update a resultset programmatically?

605


What is the use of setFetchSize() and setMaxRows() methods in Statement?

531


How many jdbc driver types are there?

495






What are the common jdbc exceptions?

530


What is the fastest type of JDBC driver?

603


What do you mean by batch processing in jdbc?

539


What is a jdbctemplate?

531


How do we call a stored procedure from jdbc?

565


How to move the cursor in scrollable resultset ?

583


Is java a database?

514


Explain about multiple implementations and drive manager?

574


What are the different types of drivers under jdbc?

481


What is the use of getGeneratedKeys() method in Statement?

543