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 [पृष्ठ ४४]