1
visibility

What is the result of the following in Java statement?
int m, p;
m = 5;
p = 0;
p = m– + –m;
The output will be:

  • 11

  • 10

  • 8

  • 12

p = m-- + --m;
⇒ p = 5 + 3
⇒ p = 8