Didn't java say that char type is automatically converted to int type? Then why? ..
First of all, you should understand that in basic type data, forced type conversion only occurs between int, long, float and double. The conversion between byte type, short integer type, char type and int type that is lower than or only an int type should not be forced, and there is no problem of operation priority and type conversion, which is officially stipulated by java and you have no right to modify it. As for whether the operation result can be accommodated by the type on the left, the input will know.