Is String comparison case-sensitive in java?

Use the equals() method to check if 2 strings are the same. The equals() method is case-sensitive , meaning that the string “HELLO” is considered to be different from the string “hello”.

Sizin İçin Seçtik  What is the problem with HashMap in Java?

Leave a Reply

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