April 2018
Intermediate to advanced
300 pages
7h 41m
English
Always acquire resources only when they are required. Instantiating objects ahead of time is not a good practice. It takes unnecessary memory and utilizes resources of the system. Furthermore, use try, catch, and finally to block and release objects in the finally block. This way, if any exception occurs, the objects which have been instantiated within the method will be released.