Advertisements
Advertisements
प्रश्न
Explain the following with one example.
Logical operator
थोडक्यात उत्तर
उत्तर
Java's logical operators (&&, ||, !) return true or false based on the outcome of expressions.
Example:
Logical operators | Symbol | Example |
AND | && |
|
OR | || |
|
NOT | ! |
|
shaalaa.com
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 1.04: Operators in Java - EXERCISES [पृष्ठ ४४]