Advertisements
Advertisements
प्रश्न
Distinguish between Character and Boolean literal.
फरक स्पष्ट करा
उत्तर
S. No. | Character Literal | Boolean Literal |
1. | Character literals are constants with alphanumeric values. | In Java, specific literals can be used to determine if a logical condition is met. |
2. | It's secured within single quotes. | Quotes never bound them. |
3. | Example: 'a', 'D', '3'. | Example: true, false. |
shaalaa.com
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 1.03: Values and Data Types - EXERCISES [पृष्ठ ३३]