Does java have an equivalent to the C# “using” clause

后端 未结 12 1451
温柔的废话
温柔的废话 2020-12-29 23:09

I\'ve seen reference in some C# posted questions to a \"using\" clause. Does java have the equivalent?

12条回答
  •  北荒
    北荒 (楼主)
    2020-12-29 23:14

    No, there is no using in Java, the most similar functionality is the "import" keyword.

提交回复
热议问题