instanceof和getClass()的区别

来源:互联网 发布:淘宝直播卖的东西质量 编辑:程序博客网 时间:2024/05/22 02:25

    getClass() will be useful when you want to make sure your instance is NOT a subclass of the class you are comparing with.

一个非常完美的equals方法的写法:


0 0
原创粉丝点击