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

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.jsbc.odbc.JdbcOdbcDriver");

Is This Answer Correct ?    26 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is resultset in jdbc with example?

870


What is jdbc? Describe the steps needed to execute a sql query using jdbc.

848


What are the advantages of using preparedstatement in java?

918


What are the measures to connect to the db using jdbc?

942


Name different methods for getting streams.

924


What are temp tables ?

931


How do I load a database driver with JDBC 4.0 / Java 6?

944


Why resultset is used in java?

881


Which database is used with java?

899


State the three different ways in which you can create a table?

908


What class.forname does, while loading the drivers?

904


What does connection pooling mean ?

933


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

922


What is the difference between execute, executeQuery, executeUpdate?

961


Does jdbc use ssl?

880