try{ return }finally{}中的return? 詳解

誰能給我我解釋一下這段程序的結果爲什麼是:2.而不是:3 class Test { public int aaa() { int x = 1; try { return ++x; } catch (Exception e) { } finally { ++x;
相關文章
相關標籤/搜索