short s1 = 1; s1 = s1 + 1;有错吗?short s1 = 1; s1 += 1;有错吗?

答案解析

s1 = s1 + 1有错,结果为int类型;s1 += 1正确,自动类型转换。