Tag: exception

HTTP Connection Not Closed

Neglecting to close opened resources in the finally block in Java violates resource management principles, risking resource leaks and performance issues.

throw inside finally

Writing throw keyword in finally block disrupts logical execution of code, instead write it under catch block.