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...

How to create Connection interface object because it is
Interface , Interface is not instansiated?

Answer Posted / mohd gousuddin

Connection is an interface which can not be instantiated but
can be referenced. The DriverManager Class is a Factory
class which contains a factory method called
getConnection(). this method creates and returns connection
object, that object can be assigned to Connection interface
referance variable.

Is This Answer Correct ?    22 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the exceptions in jdbc?

919


How many types of jdbc drivers are there?

958


Prepared statements are faster. Why?

1009


What is ojdbc14 jar?

860


What is the role of the jdbc drivermanager class?

894


Is jpa faster than jdbc?

847


What is the use of dialect?

968


Is odbc an api?

992


How to set NULL values in JDBC PreparedStatement?

937


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

940


RowSetInternal caller and returns void. What can I do in the readData method?

944


What does connection pooling mean ?

945


Which type of driver is unique in jdbc?

939


How do I write Greek ( or other non-ASCII/8859-1 ) characters to a database?

952


What is @entity in java?

911