Results 1 to 2 of 2
  1. #1
    javastuden's Avatar
    javastuden is offline Senior Member
    Join Date
    Nov 2009
    Posts
    160
    Rep Power
    5

    Default 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

  2. #2
    r035198x is offline Senior Member
    Join Date
    Aug 2009
    Posts
    2,388
    Rep Power
    8

Similar Threads

  1. "java -version" doesn't display proper value.
    By goldest in forum New To Java
    Replies: 8
    Last Post: 11-06-2009, 09:30 AM
  2. Replies: 2
    Last Post: 04-07-2009, 06:25 AM
  3. Any suggestions on what i need tp change for a proper output.
    By PureAwesomeness in forum New To Java
    Replies: 10
    Last Post: 02-24-2009, 12:46 AM
  4. Need help. Method won't returning proper value..
    By zlwilly in forum New To Java
    Replies: 2
    Last Post: 12-02-2008, 09:44 PM
  5. Replies: 4
    Last Post: 07-31-2008, 01:43 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •