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;
1. x++;2. x = x + 1;3. x += 1;4. x =+ 1;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; Correct Answer 1, 2, 3 & 4
মোঃ আরিফুল ইসলাম
Feb 20, 2025