preparedstatement p= new preparedstatement
is it possible ?

Answer Posted / t.l.n.prasad

no becoz PraparedStatement is an interface we can't
instantiate direcly but we can instantiate like this

PreparedStatement ps=con.PreparedStatement("Query");

where "con" is an Object of Connection interface
ie
Connection con=DriverManager.getConnection();

Is This Answer Correct ?    7 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why we use while rs next ())?

536


What is jdbc odbc bridge?

514


How to set the attribute concurrency in resultset?

509


What is metadata in jdbc?

495


What is jdbc architecture in java?

483






Explain Basic Steps in Writing a Java Program Using Jdbc?

607


Why “no suitable driver” error occurs?

625


Write an sql to find all records having all numeric characters in a field ?

499


Which Java and java.sql data types map to my specific database types?

549


Is uri the same as url?

504


What is a jdbc connection?

480


What are the exceptions in jdbc?

508


Why are we using blob datatypes in jdbc?

563


What is jdbc and odbc in java?

508


What is the JDBC?

566