confusion...
Hi,
In the following code, they define a class called StatementTest and inside it , they define again an instance of it . What they are doing ? I am confused with it.
import java.sql.Connection;
import java.sql.Statement;
import java.sql.PreparedStatement;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.SQLException;
public class StatementTest {
public static void main(String[] args) {
try {
StatementTest SQLExample = new StatementTest();
SQLExample.doStatement();
SQLExample.doPreparedStatement();
} catch(SQLException sqle) {
System.err.println(揝QL Exception: ?+ sqle);
} catch(ClassNotFoundException cnfe) {
System.err.println(cnfe.toString());
}
}
Connection databaseConnection; //
String driverName; //
String sourceURL; //
}

