Bookmark Topic Watch Topic
  • New Topic

JDBC

 
Sharaj Anand
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Report post to moderator
I would like to that in JDBC Connection is a class . Then why we not creating it's object like

Connection con = new Connection();

instead of

Connection con = DriverManager.getConnection();
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Report post to moderator
Moving to the JDBC forum.

Dave
 
Shailesh Chandra
Ranch Hand
Posts: 1082
Java Oracle Spring
  • Mark post as helpful
  • send pies
  • Report post to moderator
Sharaj,

Do not post a question in multiple forum

Shailesh
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Report post to moderator
Duplicated at http://www.coderanch.com/t/302420/JDBC/java/Connection-con-new-Connection - please continue discussion there. Closing...
 
    Bookmark Topic Watch Topic
  • New Topic