Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Main {
- public static String foo() {
- try {
- throw new RuntimeException("Oops");
- } finally {
- return "foo";
- }
- }
- public static String bar() {
- try {
- return "bar";
- } finally {
- throw new RuntimeException("Oops");
- }
- }
- public static void main(String[] args) {
- System.out.println(foo());
- System.out.println(bar());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement