हिंदी

State the difference between == operator and equals () method. - Computer Applications

Advertisements
Advertisements

प्रश्न

State the difference between == operator and equals () method. 

अंतर स्पष्ट करें

उत्तर

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
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 4: String Handling - Review Insight [पृष्ठ २८५]

APPEARS IN

अविचल Computer Applications [English] Class 10 ICSE
अध्याय 4 String Handling
Review Insight | Q 14. | पृष्ठ २८५
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×