Vidyalelo
Java Programming · Q46

Operators

Programming · Java Programming · question 46

Q46

With x = 0, which of the following are legal lines of Java code for changing the value of x to 1? 1. x++; 2. x = x + 1; 3. x += 1; 4. x =+ 1;

A.
1, 2 & 3
B.
1 & 4
C.
1, 2, 3 & 4
Answer
D.
3 & 2

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board