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
What does connection pooling mean ?
What is jdbc in dbms?
What is database deadlock ? How can we avoid them?
What is two-phase commit in the database?
What is ODBC and JDBC? How do you connect the Database?
Explain in detail about JDBC and its general features?
Is possible to open a connection to a database with exclusive mode with JDBC?
How can I determine where a given table is referenced via foreign keys?
Why can't I invoke the ResultSet methods afterLast and beforeFirst when the method next works?
How MS-Access DB can be accessed over a network, using JDBC API?
What is in terms of jdbc a datasource?
What are the types of jdbc drivers that exist?
What are the different types of lockings in jdbc?
How do I insert/update records with some of the columns having NULL value?
Can we return resultset in java?