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

How do you determine the sensitivity of the ResultSet object?

623


What is jdbc and odbc?

589


What are common JDBC Exceptions?

635


What is the difference between ojdbc6 and ojdbc7?

546


Is jdbc a middleware?

587






What is jdbc driver for sql server?

600


What are devices?

586


How do I set properties for a JDBC driver and where are the properties stored?

578


Why is odbc needed?

569


Why do you use a data source object for a connection?

635


What is 2 phase commit?

669


What is jdbc and its advantages?

587


What does it mean to "materialize" data?

620


DB2 Universal claims to support JDBC 2.0, But I can only get JDBC 1.0 functionality. What can I do?

664


What is jdbc resultsetmetadata interface?

616