Does Java have Identical Comparison Operator example ===

后端 未结 2 713
情话喂你
情话喂你 2020-12-31 11:17

Java is a Strong Static Casting so does that mean there is no use for \"===\"

I have looked at tons of documentation and have not seen Identical Comparison Operator

2条回答
  •  清歌不尽
    2020-12-31 11:52

    No java does not have === operator. Reason is pretty well explained by nhgrif. Here is the list of operators in java and their precedence:

    enter image description here

    Source: http://docs.oracle.com/javase/tutorial/java/nutsandbolts/operators.html

提交回复
热议问题