Results 1 to 2 of 2
- 11-05-2009, 10:33 AM #1
pls expalin me with any proper example
1)Class.forName("com.mysql.jdbc.Driver").newInstan ce();
2)Connection con = DriverManager.getConnection("jdbc:mysql://localhost/local?user=rootet&password=rootsss");
How the line (1) and line(2) related every where i had seen that just putingClass.forname("");
and con=Driver
how the Drivermanager is related with classforname
pls expalin me with any proper example
Thanks
- 11-05-2009, 10:35 AM #2
Senior Member
- Join Date
- Aug 2009
- Posts
- 2,388
- Rep Power
- 6
Similar Threads
-
"java -version" doesn't display proper value.
By goldest in forum New To JavaReplies: 8Last Post: 11-06-2009, 09:30 AM -
File fp = new File(filePath);fp.exists() does not yeild proper result
By ganeshp in forum Advanced JavaReplies: 2Last Post: 04-07-2009, 06:25 AM -
Any suggestions on what i need tp change for a proper output.
By PureAwesomeness in forum New To JavaReplies: 10Last Post: 02-24-2009, 12:46 AM -
Need help. Method won't returning proper value..
By zlwilly in forum New To JavaReplies: 2Last Post: 12-02-2008, 09:44 PM -
Java Script comes with No proper error message in the Alert box in Struts.
By anandguna in forum Advanced JavaReplies: 4Last Post: 07-31-2008, 01:43 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks