I've got the following code:
try(Socket s1=new Socket(...); Socket s2=new Socket(...);)
Quoting JLS Sec 14.20.3 (emphasis mine):
Resources are closed in the reverse order from that in which they were initialized. A resource is closed only if it initialized to a non-null value. An exception from the closing of one resource does not prevent the closing of other resources.