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