M
marcwentink
I got some question of a free test on the internet and I do not
understand it.
//-------------------
Is the following true or false: A mod (%) 16 is performed on the shift
operand which affects shifts
of more than 16 places for integers.
Answer is incorrect, It is mod 32 that returns the same value for
integers.
A mod 16 is applied for short values that will return the same value,
the modulus
of the size in bits of the type (integer, short, ..) is applied.
//---------------------
It comes from javacertificate.com. I have no idea really what they are
talking about. Could someone give me a hint?
Marc Wentink
understand it.
//-------------------
Is the following true or false: A mod (%) 16 is performed on the shift
operand which affects shifts
of more than 16 places for integers.
Answer is incorrect, It is mod 32 that returns the same value for
integers.
A mod 16 is applied for short values that will return the same value,
the modulus
of the size in bits of the type (integer, short, ..) is applied.
//---------------------
It comes from javacertificate.com. I have no idea really what they are
talking about. Could someone give me a hint?
Marc Wentink