>at some level it must be known that file handles are a 'scarce' >resource, so at some level you could do something like: >try { > file = IO.openFile(fileName); >} catch (noFileHandlesLeft e) { > Runtime.doGarbageCollection(); > Runtime.doFinalisation(); >file = IO.openFile(fileName); >} Right, except that Java's finalization call is not required to do anything at all.