-
Which one of the following causes memory leak?
-
- Release instances stored in static tables
- Release database connection when querying is complete
- Not using Finally block often
- Use Finally block as much as possible
- None of these
Correct Option: C
Finally block is called in successful as well exception scenarios. Hence, all the connections are closed properly which avoids memory leak.