結果 : why typecasting is required in java