0

Java integer

Hi! Can anybody explain me why this code output is "true" "false" ??? https://code.sololearn.com/cLuRBNm6ZYF1/?ref=app

25th May 2019, 8:48 AM
id001x
id001x - avatar
1 Respuesta
0
You only can do == for integers if the values of integers are in that range -128 to 127. In out of range use equals() function.
25th May 2019, 5:10 PM
Werg Serium
Werg Serium - avatar