How to write a JDBC program with the Type-1 driver?

Import java.sql.Connection;

            Import java.sql.DriverManager;

           Import java.sql.Class;

            Import java.sql.Statement;

            Class  Type1

{

            try          {

Class.forName(“sun.odbc.odbcJdbcOdbcDriver”);

System.out.println(“driver is loaded”);

Connection con=DriverManager.getConnection(“jdbc:odbc:demo”,”system”,”manager”);

System.out.println(“connection is created”);

Statement stmt=con.createStatement();

Int i= Stmt.executeUpdate

                          (“create table student(di number(5),name varchar2(20),marks number(5))”);

System.out.println(“table is created”);

Stmt.colse();

Con.close();

}

Catch(Exception e)

{

System.err.println(e);

}

}