結果 : java method vs function