a.
byte a = 127; // 0x7F
System.out.println(++a);
int b = 0xFFFFFFFF; // hex representation
System.out.println(++b);
[3 points] In Java programminglanguage the data types byte and int are 8-bit and 32-bit two’scompliment integers. What will be printed when the following codesnippets are executed (0x – Hex)? Which of these operations resultsin an overflow? Justify your answers.
b. [3points] The floating-point format to be used in this problem is an8-bit IEEE 754 normalized format with 1 sign bit, 3 exponent bits,and 4 mantissa bits. It is identical to the 32-bit and 64-bitformats in terms of the meaning of fields and special encodings.The
PayPal Gateway not configured
PayPal Gateway not configured