Ask Question

What is the difference between = and = = in terms of java ... ?

+4
Answers (1)
  1. 30 January, 14:36
    0
    = is for assignment, = = is for comparison.

    So x=2 means: assign the value 2 to the variable x.

    and

    x==2 means: is variable x equal to 2, yes or no?
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “What is the difference between = and = = in terms of java ... ? ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers