...
Code Block | ||
---|---|---|
| ||
{ // localLocal scope ... int[] buffer = new int[100]; doSomething(buffer); buffer = null // No need to explicitly assign null ... } |
...
Code Block | ||
---|---|---|
| ||
{ // limitLimit the scope of buffer int[] buffer = new int[100]; doSomething(buffer); } |
...