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 rowset?

3 Answers   Marlabs,


How can we maintain the integrity of a database by using jdbc?

0 Answers  


What is the query used to display all tables names in SQL Server (Query analyzer)?

0 Answers  


What is the significance of DataBaseMetaData.tableIndexStatistics? How to obtain and use it?

0 Answers  


What is meant by jdbc and odbc?

0 Answers  






Prepared statements are faster. Why?

0 Answers  


What are types of jdbc drivers?

0 Answers  


What is jdbc odbc?

0 Answers  


Is jdbc part of j2ee?

0 Answers  


What are jdbc and its components?

0 Answers  


Differentiate between type_scroll_insensitive and type_scroll_sensitive.

0 Answers  


Define preparedstatement.

0 Answers  


Categories