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 is the meaning of following code snippets
Class c=class.forName(driverClassName);
Driver d=(driver)c.newInstance();



what is the meaning of following code snippets Class c=class.forName(driverClassName); Driver d=(d..

Answer / srikanth reddy

That is nothing but
Class c=class.forName(driverClassName);
loading the class into main memory dynamically

=====================================

Driver d=(driver)c.newInstance();
ie if already created instance returns thst otherwise it will a new instance and returns thst

Is This Answer Correct ?    6 Yes 0 No

Post New Answer

More JDBC Interview Questions

How can you load the drivers?

0 Answers  


Which is better jpa or jdbc?

0 Answers  


Result set’s index starts with 0 or 1?

0 Answers  


How we can you use preparedstatement.

0 Answers  


How does a custom RowSetReader get called from a CachedRowSet?

0 Answers  


What is savepoint in jdbc?

0 Answers  


What is the advantage of namedparameterjdbctemplate?

0 Answers  


What packages are used by jdbc?

0 Answers  


What is a jdbctemplate?

0 Answers  


What is resultset in jdbc with example?

0 Answers  


What is an escape syntax?

0 Answers  


what is metadata and it's use?

3 Answers  


Categories