Computer Applications

ch += 2 is equivalent to

  1. ch = ch + 2
  2. ch + 2
  3. ch =+ 2
  4. none of the above

Java Operators

8 Likes

Answer

ch = ch + 2

Reason — += is a shorthand operator. The operator pair += tells the compiler to assign to ch the value of ch + 2.

Answered By

4 Likes


Related Questions