Multiple choice technology security

Whill this code result in DoS situation? public void dummyFunction(){ try { //open a connection to database //transaction with database closeConnection(); } catch(SQLException e){ //Exception handling block } } closeConnection() is a function which releases all database resources opened by current function.

  1. True

  2. False

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

If an exception occurs during transaction, closeConnection() is never called, causing resource leaks. Repeated failures exhaust connection pools, creating Denial of Service.