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

How do I write Greek ( or other non-ASCII/8859-1 ) characters to a database?

610


What is the significance of DataBaseMetaData.tableIndexStatistics? How to obtain and use it?

516


Which constraint cannot be specified as an explicit constraint and should be specified with the column only ?

492


When do we get java.sql.SQLException: No suitable driver found?

550


Explain about Join?

598






What does setautocommit do?

563


What is benefit of using preparedstatement in java?

495


What is JDBC ResultSet?

598


What is jdbc odbc?

518


Which type of driver is unique in jdbc?

494


Is it possible to connect to multiple databases simultaneously?

559


What does executeupdate return in jdbc?

515


Where can I find ojdbc14 jar file?

498


What is the difference between setmaxrows(int) and setfetchsize(int)?

568


List the common jdbc exceptions ?

572