Java integer | Sololearn: Learn to code for FREE!

0

Java integer

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

5/25/2019 8:48:22 AM

id001x

1 Answer

New Answer

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.