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
How to check jdbc driver version in sql server?
What is benefit of using preparedstatement in java?
What are the jdbc api components?
What is the significance of DataBaseMetaData.tableIndexStatistics? How to obtain and use it?
What is jndi lookup?
Where is jdbc url mysql?
How does jdbc driver work?
What are the steps involved in establishing a connection using jdbc in java?
What is statement and resultset in jdbc?
How can we execute stored procedures?
How can I write to the log used by DriverManager and JDBC drivers?
Describe odbc?
Why jdbc is used in java?
How does a custom RowSetReader get called from a CachedRowSet?
What is the difference between ojdbc6 and ojdbc7?