summaryrefslogtreecommitdiffstats
path: root/src/test/misc/en/FinallyTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/misc/en/FinallyTest.java')
-rw-r--r--src/test/misc/en/FinallyTest.java22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/test/misc/en/FinallyTest.java b/src/test/misc/en/FinallyTest.java
new file mode 100644
index 0000000..2162636
--- /dev/null
+++ b/src/test/misc/en/FinallyTest.java
@@ -0,0 +1,22 @@
+package test.misc.en;
+
+public class FinallyTest {
+
+ public FinallyTest() {
+
+ int i;
+ try {
+ try {
+ i = 0;
+ } finally {
+ i = 1;
+ }
+ i = 2;
+ } finally {
+ i = 3;
+ }
+
+ System.out.println(i);
+ }
+
+}