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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is jdbc databasemetadata interface?

552


any one can explain about policy file rule? when i connect database with applet then ther is no compile time error but the run time error is occureed.i.e access is denied.policy file rule is related to this problem.

1851


What do you understand by jdbc datasource?

601


Explain the locking system in jdbc & its types?

510


What is difference between statement and preparedstatement in jdbc?

473






What are the common tasks of JDBC?

572


What is jdbc thin client in oracle?

495


What does connection pooling mean ?

577


How you restrict a user to cut and paste from the html page using java programing?

483


How MS-Access DB can be accessed over a network, using JDBC API?

2022


How to check jdbc connection in linux?

517


Which Java and java.sql data types map to my specific database types?

542


Explain in detail about JDBC and its general features?

533


What are the different types of resultset?

550


List some new features available in jdbc 4.0?

482