Any idea where I can find an explanation of how the ==-operator is compiled exactly? I haven't found any language-specification other than the java-api so far. [ April 20, 2007: Message edited by: Sasha Ruehmkorf ]
when either of the operands of == when using with Integer object is primitive,then Integer object is autoboxed to its primitive value and then compared.
Joined: Mar 29, 2007
Just found: "If the operands of an equality operator are both of numeric type, or one is of numeric type and the other is convertible to numeric type, binary numeric promotion is performed on the operands"