Q.

Which of the following will cause a semantic error, if you are trying to compare x to 5?

A. if (x == 5)
B. if (x = 5)
C. if (x <= 5)
D. if (x >= 5)
Answer» B. if (x = 5)
3.4k
0
Do you find this helpful?
18

View all MCQs in

Java Programming

Discussion

No comments yet