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
How can you make a connection?
What is jdbc url for mysql?
What are the components of jdbc?
Which constraint cannot be specified as an explicit constraint and should be specified with the column only ?
What are devices?
What is JDBC Connection isolation levels?
What is the latest version of JDBC? What are the new features added in that?
What is the use of getGeneratedKeys() method in Statement?
What does the connection object represents?
What are the different types of drivers under jdbc?
Explain how data flows from view to db and reverse
Is oracle client required for jdbc connection?
What is JDBC Transaction Management and why do we need it?
Why “no suitable driver” error occurs?
Is uri the same as url?