(try
(/ 1 0)
(catch ArithmeticException e (str "caught exception: " (.getMessage e)))
(finally (prn "final exception.")))
"final exception."
"caught exception: Divide by zero"
(try
(/ 1 0)
(catch ArithmeticException e (str "caught exception: " (.getMessage e)))
(finally (prn "final exception.")))
"final exception."
"caught exception: Divide by zero"
Comments top
No comments for finally. Log in to add a comment.