Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Does sql allow null values ? Can we use it within where clause ?

981


Is jdbc object oriented?

944


Explain how to make updates to the updatable resultsets.

924


Why is jdbc needed?

912


What do you mean by two phase commits?

1082


What are the different types of statements in jdbc?

920


What are the steps involved in establishing a connection using jdbc in java?

987


What is an escape syntax?

998


What is jdbc connection interface?

1020


What are the new features added to JDBC 4.0?

958


What is serialization and deserialization in java programming?

994


Prepared statements are faster. Why?

1054


What are the basic exceptions in jdbc?

1105


Why is odbc needed?

912


What is thin driver in jdbc?

1004