V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
8bit

tttt

  •  
  •   8bit · Jul 15, 2016 · 399 views
    This topic created in 3575 days ago, the information mentioned may be changed or developed.

    2 replies    2016-08-30 22:38:21 +08:00
    8bit
        1
    8bit  
    OP
       Aug 30, 2016
    ```
    a = 2;
    return a;
    ```
    8bit
        2
    8bit  
    OP
       Aug 30, 2016
    ```
    public class Main {
    public static int testFinally() {
    int a = 1;
    try {
    if (a == 1) {
    throw new RuntimeException("REA");
    }

    a = 2;
    return a;

    } finally {
    if (a == 1) {
    throw new RuntimeException("REB");
    }
    }
    }
    public static void main (String args[]) {
    System.out.println(testFinally());
    }
    }
    ```
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2736 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 11:12 · PVG 19:12 · LAX 04:12 · JFK 07:12
    ♥ Do have faith in what you're doing.