結果 : method and function are same in java