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 are the pros and cons of detached objects?

736


Is there a guarantee of uniqueness for entity beans?

744


Why use a datasource when you can directly specify a connection details? (in a J2EE application)

3797


How will you pass parameters in RMI? Why do you serialize?

896


A user of a web application sees a jsessionid argument in the URL whenever a resource is accessed. What does this mean? a. The form must have the field jsessionid b. URL rewriting is used as the session method c. Cookies are used for managing sessions

2006






How substring() method of string class create memory leaks?

757


Explain the difference between object state and behavior?

741


Are we allowed to change the transaction isolation property in middle of a transaction?

759


Can I map more than one table in a cmp?

780


What is prototype?

805


Is jvm a overhead?

807


What are JTA/JTS and how they used by client?

1925


What do you need to set-up a cluster with jboss?

794


Where can I find seam examples and documentation?

784


Why doesn’t the focus feature on the tag work in every circumstance?

765