InterviewSolution
| 1. |
What Do You Understand By Numeric Promotion? |
|
Answer» The Numeric promotion is the conversion of a SMALLER numeric type to a larger numeric type, so that integer and floating-point operations may TAKE place. In the numerical promotion process the byte, char and short values are converted to INT values. The int values are also converted to LONG values, if NECESSARY the long and float values are converted to double values, as required. The Numeric promotion is the conversion of a smaller numeric type to a larger numeric type, so that integer and floating-point operations may take place. In the numerical promotion process the byte, char and short values are converted to int values. The int values are also converted to long values, if necessary the long and float values are converted to double values, as required. |
|