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
Is jdbc database independent?
How are jdbc statements used?
What does jdbc setmaxrows method do?
What is savepoint in jdbc?
What is SQL Warning? How to retrieve SQL warnings in the JDBC program?
What are the different types of classes in the api component?
How MS-Access DB can be accessed over a network, using JDBC API?
What is device controller?
How many types of resultset are there in jdbc?
How can we retrieve data from the resultset?
Where jdbc drivermanager class is used?
What is new in JDBC 2.0?
What are the classes and methods used for sending sql statements to database?
Is oracle client required for jdbc connection?
Which package is used for jdbc application?