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

How can you make a connection?

1036


What is jdbc url for mysql?

1089


What are the components of jdbc?

1038


Which constraint cannot be specified as an explicit constraint and should be specified with the column only ?

984


What are devices?

1028


What is JDBC Connection isolation levels?

1130


What is the latest version of JDBC? What are the new features added in that?

1044


What is the use of getGeneratedKeys() method in Statement?

1065


What does the connection object represents?

1107


What are the different types of drivers under jdbc?

899


Explain how data flows from view to db and reverse

2090


Is oracle client required for jdbc connection?

1024


What is JDBC Transaction Management and why do we need it?

1247


Why “no suitable driver” error occurs?

1139


Is uri the same as url?

940