题目内容
下列【1】【2】【3】【4】注释标注的哪行代码有错误?import java.sql.*;public class E {public static void main(String args[]) {Connection con=null;Statement sql;ResultSet rs;try{ Class.forName("com.mysql.cj.jdbc.Driver"); //【1】}catch(Exception e){}String uri ="jdbc:mysql://localhost:3306/students?"+"useSSL=true&serverTimezone=CST";; //【2】String user ="root";String password ="";try{con = DriverManager.getConnection(uri,user,password); //【3】}catch(SQLException e){ }sql=con.createStatement(); //【4】}}
查看答案
搜索结果不匹配?点我反馈
更多问题