Using “try with resources” for resources created without any reference

前端 未结 0 898
青春惊慌失措
青春惊慌失措 2020-11-29 19:07

Consider the following situation :

try (ResultSet resultSet = DriverManager.getConnection("jdbc:...", "user", "pass")
                   


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题