Not sure what you are looking into check the following example
public void run() { try { Object foo = new Object(); foo.doSomething(); } catch (Exception e) { // whatever } // the object assigned to the variable foo will become invisible // after leaving the try/catch block while (true) { // do stuff } }