"using" keyword in java

Posted by DrDro on Stack Overflow See other posts from Stack Overflow or by DrDro
Published on 2010-05-31T12:36:14Z Indexed on 2010/05/31 12:42 UTC
Read the original article Hit count: 308

Filed under:
|
|

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
}

This has probably allready been asked but the keywords make it difficult to find a relevant question.

© Stack Overflow or respective owner

Related posts about c#

Related posts about java