Which line/lines contain an error?

int i = 1;            //1
i = -+(10 + 2 + i);   //2
++i--;                //3
System.out.println(i);
Explanation
Increment and decrement operators cannot be applied to a variable at the same line.
Java
Java Quiz
Start Quiz

or Read more about Java Quiz

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback