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
Does sql allow null values ? Can we use it within where clause ?
Is jdbc object oriented?
Explain how to make updates to the updatable resultsets.
Why is jdbc needed?
What do you mean by two phase commits?
What are the different types of statements in jdbc?
What are the steps involved in establishing a connection using jdbc in java?
What is an escape syntax?
What is jdbc connection interface?
What are the new features added to JDBC 4.0?
What is serialization and deserialization in java programming?
Prepared statements are faster. Why?
What are the basic exceptions in jdbc?
Why is odbc needed?
What is thin driver in jdbc?