KnowledgeBoat Logo

Computer Applications

The statement n += 4 is equivalent to:

  1. ++n
  2. n=n+4
  3. n+1
  4. None

Java Operators

43 Likes

Answer

n=n+4

Reason — Here, += is a Shorthand operator. It can be used to write a Java expression into short form provided same variables are used after and before the assignment sign (=).

Answered By

8 Likes


Related Questions