Advertisements
Advertisements
प्रश्न
Distinguish between (p != q) and !(p == q).
फरक स्पष्ट करा
उत्तर
S. No. | (p != q) | !(p == q) |
1. | This condition will be true if p and q are not equal. | Even if p and q are equal, false is returned because of the (NOT !) operator. |
2. | Example:
|
Example:
|
shaalaa.com
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 1.04: Operators in Java - EXERCISES [पृष्ठ ४४]