Integer problem encountered in the project — transfer

Integer type value equal or unequal analysis

http://www.cnblogs.com/zzllx/p/5778470.html

See the interview question written by a blogger in the blog Park, one of which is integer a = 1; Integer b = 1 ; (a = = b)? True: false; when I saw it at that time, it was not obvious that it was true. I learned from the comments and discussions that there were scope provisions for integer values. I usually use equals to make comparison judgments, which is simple and easy. I didn't pay attention to these details. I took this opportunity to sing a good song and make a backup.

Test with the following code

< div class = "cnblogs_code" > < div class = "cnblogs_code_toolbar" > < span class = "cnblogs_code_copy" > < a title = "copy code" >

 copy code

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>