Does Java have a using statement?

前端 未结 12 1999
梦谈多话
梦谈多话 2020-11-28 16:13

Does Java have a using statement that can be used when opening a session in hibernate?

In C# it is something like:

using (var session = new Session()         


        
12条回答
  •  星月不相逢
    2020-11-28 17:01

    ARM blocks, from project coin will be in Java 7. This is feature is intended to bring similar functionality to Java as the .Net using syntax.

提交回复
热议问题