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

What is new in JDBC 2.0?

574


What is the use of statement in jdbc?

467


Why do you use a data source object for a connection?

544


How can I retrieve a String or other object type without creating a new object each time?

578


Give an example for getXXX method?

556






Differentiate between type_scroll_insensitive and type_scroll_sensitive.

523


What are the higher level apis under development on top of jdbc currently?

488


What is a jdbc url?

464


What is the purpose of the jdbc resultset interface?

519


What driver should I use for scalable Oracle JDBC applications?

503


Is jdbctemplate thread safe?

484


What are the steps to connect to the database in java?

521


How are jdbc statements used?

501


How to check jdbc connection in java?

502


Is java a database?

499