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

what exactly happens when we execute
"Class.forname("Driver class name");"?Explain indetail

Answer Posted / nitin upadhyay,raigarh(c.g)

By using this coding we load the driver.
Class is a predefined class and forName is the static
method of the class. which is used to load the driver in the
memory for connectivity.

For eg
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");

Is This Answer Correct ?    13 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How java can be connected to a database?

1162


What is connection pooling and why it is used?

1063


Does jdbctemplate use prepared statements?

964


Explain the role of driver in jdbc.

1057


What is the limitation of PreparedStatement and how to overcome it?

1188


What is a statement in java?

948


What is jdbc odbc bridge in java?

1131


How to invoke Oracle Stored Procedure with Database Objects as IN/OUT?

1142


What is the full form of jdbc?

1096


What are the different types of lockings in jdbc?

978


List the advantages of using datasource?

1052


What is the use of setFetchSize() and setMaxRows() methods in Statement?

1045


Is it possible to connect to multiple databases simultaneously? Using single statement can one update or extract data from multiple databases?

1063


How many jdbc driver types are there?

972


How many ways can you update a result set?

1063