How can we make sure that a code segment gets executed even in case of uncatched exceptions?
Question
How can we make sure that a code segment gets executed even in case of uncatched exceptions?
Answer
By putting it within finally.
How can we make sure that a code segment gets executed even in case of uncatched exceptions?
By putting it within finally.