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 / anand

We can not create object to any interface but we can create a reference variable to interface. Connection is an interface released by SUN micro system.Once interface released anybody in this world can provide implementation,provide implementation means writing down the code for all the methods of that inteface. As we know that Connection is an interface relased by sun micro system and Oracle corporation provide implementation class to that inteface and this class is called "Connetion class".We can create the reference variable to Connection interface and this reference variable hold the object of class which provide the implementation to Connection class.
DriverManager is also an interface and this interface contains a static method getConnection(), this method returns the object of a class which provide implementation of Connection interface.

Is This Answer Correct ?    0 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is java soft framework?

1059


How we store procedure in oralce for callable statements in jdbc

2383


Why do we need jdbc api?

1034


How can we retrieve data from the resultset?

1024


What are the different types of resultset?

1021


What is the difference between jdbc and jndi?

1063


Why is jdbc used?

994


What are the differences between setmaxrows(int) and setfetchsize(int)?

1109


What is jdbc stand for?

985


How can I use the JDBC API to access a desktop database like Microsoft Access over the network?

1062


What do you mean by jdbc batch processing and what are the advantages of using jdbc batch processing?

1027


What is JDBC Statement?

1042


Can I enable requests to a jdbc connection pool for a database connection to wait until a connection is available?

964


What is preparedstatement in jdbc?

1011


What are the main steps in java to make JDBC connectivity?

1070