Ask Question
11 March, 01:45

Which of the following is the java comparison operator for "not equal to"

+3
Answers (1)
  1. 11 March, 01:56
    0
    You need to provide "the following", otherwise other users cannot answer your question.

    However, the Java operator for "not equal to" is "!=".

    / / For example.

    if (1! = 2) {

    System. out. println ("1 doesn't equal 2");

    }

    The if-statement in the code above will always run, since 1 is not equal to 2.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “Which of the following is the java comparison operator for "not equal to" ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers