Question
Jan Villaroel
Topic: Computer Science Posted 1 year ago
byte a = 127, b = -128 // or a = 0x7F, b =? System.out.println(++a, + “ “ + --b);

Java:

byte a = 127, b = -128 // or a = 0x7F, b =?
System.out.println(++a, + “ “ + --b);
int p = Integer.MAX_VALUE, q = Integer.MAX_VALUE
System.out.println(p + “ “ + q);
System.out.println(++p + “ “ + --q);

What will be printed?


Answers
What are best answers and total votes?
No Votes
Vote
SignIn to Vote
Koala Tutor
Oct 4, 2023
Koala Ai Support

The output will be:

128 -129
2147483647 2147483647
-2147483648 2147483646

Koala Tutor Got a question with my answer?
Message Me