Does equalsIgnoreCase handle null?

equalsIgnoreCase(null); will definitely result in a NullPointerException . So equals methods are not designed to test whether an object is null, just because you can’t invoke them on null .

Sizin İçin Seçtik  Does Binance have TRON?

Leave a Reply

Your email address will not be published. Required fields are marked *