Menu
Question Index
...

Choose the incorrect statement about the following expressions?

a=a+1;        // Expression 1
a++;        // Expression 2
a+=1;        // Expression 3
++a;        // Expression 4


All expressions give the same result
'Expression 2' is faster that 'Expression 3' which inturn is faster than 'Expression 1'
The value of 'a' after 'Expression 2' is different from 'Expression 4'
The value of 'a' after 'Expression 1' is same as 'Expression 3'

Doubts

Problems

Topic: Arithmetic Compound Assignment Operators In Java

Read this topic
Take test on this topic

0
Wrong
Score more than 2 points

© meritcampus 2019

All Rights Reserved.

Open In App