1 //Open the connection through jdbc:gateway and then call isClosed(). It should return false.
2 //Close the connection jdbc:gateway and then call isClosed(). It should return true.
5 public class ConnTest08
7 public static void main(String
[] args
)
11 Class
.forName("csql.jdbc.JdbcSqlDriver");
12 Connection con
= DriverManager
.getConnection("jdbc:gateway", "root", "manager");
15 if(con
.isClosed()) System
.exit(1);
17 if(!con
.isClosed()) System
.exit(1);
19 System
.out
.println(e
.getMessage());