Avoiding Memory Leaks By Simple Tricks ✅
Memory Leaks often cause performance degradation of software. Since, Java manages memory automatically, the developers do not have much control.
But there are still some standard practices which can be used to protect from memory leakages. 🙆🏻♂️
1️⃣ - Always release database connections when querying is complete.
2️⃣ - Try to use Finally block as often possible.
3️⃣ - Release instances stored in Static Tables.
#java #memory #performance
@programmingTip
Post #112
1.12K