Back to Browse

If an exception occurs, will finally block will be executed (Core Java Interview Question #468)

209 views
Jun 6, 2024
14:25

In this session, I have explained the purpose of finally block and how it be executed whether an exception occurs or not. How to close the objects in finally block irrespective of whether an exception occurs in try block and the code we have to write in real time when we have to use finally block is explained in detailed. Irrespective of whether try or catch blocks gets executed, finally block will be executed for sure and can be used for closing the objects and therefore save the program of Java from memory leak. If an exception occurs, will finally block will be executed (Core Java Interview Question #468) For any doubts, live training updates and free Courses, please join our Telegram channel https://t.me/qafoxoriginal View Notes Here - https://docs.google.com/document/d/1ILqBVBMl48uxdQ711acgIL122jP0Eg2ykes_dN1RHOo/edit?usp=sharing Find all free full courses on Software Testing and Tools here - https://www.linkedin.com/posts/arunmotoori_softwaretesting-activity-7035596622440931328-kbBQ?utm_source=share&utm_medium=member_desktop Visit our website for more details here - https://www.qafox.com/

Download

0 formats

No download links available.

If an exception occurs, will finally block will be executed (Core Java Interview Question #468) | NatokHD