preparedstatement p= new preparedstatement
is it possible ?
Answer Posted / surya, samcomm technologies pv
yes, but that is not the way to create object for the
interface. using Anonymous inner class.
syntax...
PreparedStatement ps=new PreparedStatement() {
U should implement all the methods of this
interface inside this block.
};
or if u feel this is overhead, then simply get the
reference for this interface in the following way.
PreparedStatement ps=con.prepareStatement("query");
| Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
What is use of connection pooling?
Where jdbc drivermanager class is used?
What do you mean by jdbc batch processing and what are the advantages of using jdbc batch processing?
What are the steps required to execute a query in jdbc?
Which of the attributes in the monitoring tab for a jdbc connection pool in the administrative console tell us how many clients are currently waiting for a connection?
Result set’s index starts with 0 or 1?
What is the use of setFetchSize() and setMaxRows() methods in Statement?
please tell me the name and url path for type-4 driver ?
What do you understand by DDL and DML statements?
How does jdbc work?
Jdbc-odbc bridge is multi-threaded or not?
What is the purpose of the jdbc resultset interface?
What is jdbc resultsetmetadata interface?
How to check jdbc driver version in websphere?
Which is best database for java?