• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JDBC related classes

 
Ravi Pati
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I am a beginner. Can some one please explain the following .
How could I see these classes in eclipse.

import java.sql.Connection;
import java.sql.Statement;

1.Connection conn= null;
// Here what is Connection and conn

2.Statement stmt=null;
// here What is Statement and stmt

1.Class.forName("some string") ;

// here the Class is an object ?
// then what is the class of this object?
// this returns what ?

4. Conn=DriverManager.getConnection( " "," "," ")

// what is DriverManager ? is this object ?
// then what is the class of this object
// this returns Conn. what is Conn here

Thank you.
Ravi
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You may want to work through the JDBC chapter of the Java Tutorial; it explains these concepts.

For questions about specific interfaces and classes you should generally start by looking them up in the javadocs.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic