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