Results 1 to 5 of 5
Thread: question about Class.forName()
- 07-19-2007, 11:08 PM #1
Member
- Join Date
- Jul 2007
- Posts
- 41
- Rep Power
- 0
- 07-24-2007, 01:48 AM #2
Member
- Join Date
- Jul 2007
- Posts
- 41
- Rep Power
- 0
JDBC (for the most part) is part of the JSE . And, although the method "forName" of the class "Class" is used very often when using JDBC (for loading the Driver), the class "Class" is not part of JDBC, but rather is one of the base classes for Java itself and is, of course, part of the JSE.
- 07-27-2007, 02:12 PM #3
Member
- Join Date
- Jul 2007
- Location
- bangalore,india
- Posts
- 19
- Rep Power
- 0
class
syntax
Class.forName("sun.odbc.jdbc.JdbcOdbcDriver");
in case of sql connectivity
now
Class is a base class in the J2se API not in J2ee API so look core java documentation.it contains the forName() method.used for loading drivers.,
- 08-01-2007, 11:45 AM #4
Member
- Join Date
- Jul 2007
- Posts
- 9
- Rep Power
- 0
Hi,
The Systax:
Class.forName("DriverName");
You can find this Class in java.lang i.e in j2se API not in J2ee API. This Class contains the method forName(). By using this method you can load the driver.
- 08-01-2007, 04:52 PM #5
Member
- Join Date
- Jul 2007
- Posts
- 41
- Rep Power
- 0
Similar Threads
-
failure at Class.forName("oracle.jdbc.driver.OracleDriver");
By RonNYC in forum EclipseReplies: 1Last Post: 03-14-2008, 02:51 PM -
Abstract Class question
By maa11235 in forum New To JavaReplies: 1Last Post: 01-05-2008, 10:30 PM -
class organization question
By maa11235 in forum New To JavaReplies: 0Last Post: 12-17-2007, 03:25 AM -
about Class.forName
By angus203 in forum New To JavaReplies: 0Last Post: 11-25-2007, 04:47 AM -
question regarding class
By kavithas in forum New To JavaReplies: 4Last Post: 11-16-2007, 09:12 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks