148k views
1 vote
Which of the following is NOT a Java operator? Remember, for this question and other questions in this quiz: "When in doubt, try it out (in IntelliJ)". Select one or more:

a. --
b. ||
c. !
d. ===
e. !=
f. -=
g. <=
h. <-

1 Answer

2 votes

Final answer:

The === and <- symbols are not operators in Java. Instead, Java uses == as the equality operator, and <- is not recognized in the language.

Step-by-step explanation:

In Java programming, operators are special symbols that perform specific operations on one, two, or three operands, and then return a result. Among the options listed, -- (decrement), || (logical OR), ! (logical not), != (not equal to), -= (minus equal, which is a shorthand for subtraction assignment), and <= (less than or equal to) are valid Java operators.

The options that are NOT Java operators are === and <-. In Java, === is not used; instead, == is the equality operator. The <- is also not an operator in Java.

User Hossein Shahdoost
by
7.7k points

Related questions