Azienda coinvolta
How to close connections on exception
Anonimo
You can use try with resource, so that it will close the connection if it is success or failure.
You can use finally block to close exceptions generally catch block should be fine but you need to make sure that connection gets closed everytime
Non lasciarti sfuggire opportunità e informazioni privilegiate seguendo le aziende dove vorresti lavorare.
Ricevi suggerimenti e aggiornamenti personalizzati avviando le tue ricerche.