I learned java 7 feature try with resources
.
In catch block I should handle exceptions from try
(as usually) and from finally
Does it mean that finally was invoked before catch? What if I want to treat to Closeable resource in catch?
There is one observation, which confirms my assumption.
If try block throw exception1 and close method of resource throws exception2 then exception1 will catched and exception2 will supressed.