State the difference between == operator and equals () method.
Advertisements
प्रश्न
State the difference between == operator and equals () method.
फरक स्पष्ट करा
Advertisements
उत्तर
| S. No. | == operator | equals () |
| 1. | It is a relational operator. | It is a method of string class. |
| 2. | It checks for equality of primitive type of values. | It checks for equality of two string types of values. |
shaalaa.com
Introduction of Operators in Java
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
