Connection connection = DriverManager.getconnection();DriverManager并没有实现Connection接口,为什么可以这么写?
收起
你看一下源码中,他的返回值是Connection
报告相同问题?