結果 : java function throws exception