preparedstatement p= new preparedstatement
is it possible ?

Answer Posted / satya veni

No.Interfaces can not be instantiated.
PreparedStatement ps=con.PreparedStatement("query");

Is This Answer Correct ?    27 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

List the advantages of using datasource?

566


What is a rollback in jdbc?

534


How do I find whether a parameter exists in the request object?

509


How can I instantiate and load a new CachedRowSet object from a non-JDBC source?

544


Why we use while rs next ())?

536






How you restrict a user to cut and paste from the html page using java programing?

489


Explain the difference between resultset and rowset in jdbc

545


How vendor Naming registry supports JNDI?

1779


What is JDBC DataSource and what are it’s benefits?

541


What is the use of callablestatement? Name the method, which is used to prepare a callablestatement.

483


What is jdbc odbc?

526


How MS-Access DB can be accessed over a network, using JDBC API?

2032


What is namedparameterjdbctemplate?

515


What is the meaning of batch updates?

576


Briefly tell about the jdbc architecture.

567