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

What is executequery in java?

0 Answers  


Does the database server have to be running Java or have Java support in order for my remote JDBC client app to access the database?

0 Answers  


What is jsp and jdbc?

0 Answers  


What is CLOB and BLOB datatypes in JDBC?

0 Answers  


What is metadata in programming?

0 Answers  


What is an outer join?

3 Answers   Infogain,


How is database middleware used to access legacy databases?

1 Answers  


What is statement and resultset in jdbc?

0 Answers  


What is difference between odbc and jdbc?

0 Answers  


What types of DataSource objects are specified in the Optional Package?

0 Answers  


what is JDBC?

3 Answers   Wipro,


What is the meaning of “dirty read” in the database?

0 Answers  


Categories