Learn Java Arithmetic Operators and Compound Assignment with Examples - Quiz

Total: 3 questions

1. 

How character values are compared in Java?

When comparing characters, Java uses character's Unicode numerical value.

2. 

Rewrite with compound operators: x = x - 8;

x -= 8;

3. 

Rewrite using compound operator: a = a + 3 * 4;

a += 3 * 4;

Page 1 of 1