Advertisements
Advertisements
प्रश्न
Differentiate between equals() and ==
फरक स्पष्ट करा
उत्तर
equals() | == |
This function in the String class checks if two strings are identical.(The equals() function handles upper and lower case characters differently). | This relational operator compares two primitive data elements, such as expressions, constants, or variables, to determine their equality. |
shaalaa.com
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?