phooton misra wrote:Some Body please suggest me What is the purpose of
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
regards.
Phooton...
A quick search would provide you some basic information about forName method.
Basically, Class.forName simply loads the mentioned class in JVM. This is just like an import statement, but provide more facilities (e.g. you can load a class based on some condition, or you can take name of the class from environment variable or property file etc.)
Regards,
Anayonkar Shivalkar (SCJP, SCWCD, OCMJD, OCEEJBD)