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 vendor Naming registry supports JNDI?

1756


Discuss the procedure of retrieving warnings?

550


Is jdbc a web technology?

486


What is the query used to display all tables names in SQL Server (Query analyzer)?

504


What is the purpose of the jdbc resultset interface?

508






What is sqlwarning and discuss the procedure of retrieving warnings?

542


Explain about column name and getter method?

584


How to move the cursor in scrollable resultset ?

560


What do you understand by jdbc statements?

503


How will you perform truncation using JDBC?

566


What is the full form of jdbc?

483


What is jsp and jdbc?

483


What does the jdbc resultsetmetadata interface?

533


How do I insert/update records with some of the columns having NULL value?

499


What are the 4 types of jdbc drivers?

499