What is the use of Class.forName

Answer Posted / mamitha

It loads the neccessary driver at run time and provide the features based on the database connecting. forName() is the static method and class is a class.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does module-relative mean?

573


Describe responsibilities of Activator?

1671


How messaging services are done, before release of JMS?

1583


Brief description about local interfaces?

627


What state does a thread enter when it terminates its processing?

600






what is the use of State Factories?

1905


What are the purpose of introspection?

677


What is the difference between RMI registry and OS Agent?

628


What is the diffrence between a local-tx-datasource and a xa-datasource? Can you use transactions in both?

566


Name the eight primitive java types.

593


What is ripple effect?

634


What is bean? Where can it be used?

575


Why does the option tag render selected=selected instead of just selected?

671


What are the different approaches to represent an inheritance hierarchy?

582


What’s jboss jbpm?

576