What is the use of Class.forName

Answer Posted / rajshekhar

class.forName() is used to load the jdbc driver.
class is a class and for name is a static method its syntax
is
Class.forName("sun.jdbc:odbc:JdbcOdbcDriver");

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the relationship between an event-listener interface and an event-adapter class?

768


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

805


Can I map more than one table in a cmp?

787


What is a modular application?

789


Do I need to import javlang package any time? Why ?

839


What is the difference between a static and a non-static inner class?

825


What is clustering? What are the different algorithms used for clustering?

791


If we opened Windows Internet Explorer 4 times, does it starts 4 processes or 4 threads?

1962


Is infobus easy to use?

787


If I wanted to use a solarisui for just a jtabbedpane, and the metal ui for everything else, how would I do that?

772


Can you control when passivation occurs?

803


Can constructors be synchronized in java?

813


What is a class loader?

949


what are RemoteObjects?

2458


What is colon_pkg_prefixes and what is its use?

2199