• 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: 42970
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.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!