Hi All, Thanks in advance. In regular JDBC program we will write, Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"). According to my knowledge, which will regsiers the drivers and Loads the class, is it rite? And, actually which will returns a "Class", but we are not taking return like,Class cl=Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"), then how java is allowing. Please tell me.
posted 10 years ago
It's perfectly legal to ignore the result of a method call. The call has side effects -namely, that the driver gets registered-, and those are important here.