60

In Java is there an equivalent to the C# "using" statement allowing to define a scope for an object:

using (AwesomeClass hooray = new AwesomeClass())
{
   // Great code
}
Jla
  • 11,304
  • 14
  • 61
  • 84

0 Answers0