Java String equals() Method
Java String equals()
equals() method checks whether the two specified String objects have the same value or not.
Note: Both, == and Equals() method compares the content of strings. So, there is no difference between them.
Note: This method is case-sensitive.
|str1||Required||Specifies the string to be compared.|
|str2||Required||Specifies the string to be compared.|
|true||If the two specified String objects have the same value.|
|false||If the two specified String objects does not have the same value.|
Hi Developers, we almost covered 90% of String functions and Interview Question on Java with examples for quick and easy learning.
We are working to cover every Single Concept in Java.
Please do google search for:
Join Our Channel
This channel is primarily useful for Full Stack Web Developer.