मराठी

What is the difference between = and ==? - Computer Applications

Advertisements
Advertisements

प्रश्न

What is the difference between = and ==? 

फरक स्पष्ट करा

उत्तर

S. No. = ==
1. Assignment (=) Equals (==)
2. This is the assignment operator. This is a relational operator.
3. Example: 
a = b;
// assigns the value of b to a
Example: 
boolean w = (a == b) 
// w = true if a and b are equal, otherwise w = false
shaalaa.com
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 1.04: Operators in Java - EXERCISES [पृष्ठ ४४]

APPEARS IN

अविचल Computer Applications [English] Class 10 ICSE
पाठ 1.04 Operators in Java
EXERCISES | Q V. 5. (b) | पृष्ठ ४४
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×