In this operation, the java will interpret the int primary type and integer as the same type by It is a implicit conversion performed before the analysis of the expression itself, where the int intra type will be converted. ( alternative 3 ). Two types of conversions are performed whenever a logical expression or arithmetic presents different variables and types.
The two types of conversions are:
- implicit conversion - automatically performed by compiler .
- Explicit conversion - performed by programmer .
< /p>
no implicit conversion , the compiler will perform the conversion of all different types and variables in one type, to Only then do the Evaluation of the expression itself. Strong> will perform this operation forcibly, to prevent errors from occurring during process execution, thus reaching the desired result.