Styrow.dev
Question 214 of 247
Java Topic: General medium

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.