Advertisements
Advertisements
Question
Assertion (A): In java statements written in lower case letter or upper case letter are treated as the same.
Reason (R): Java is a case sensitive language.
Options
Both Assertion (A) and Reason (R) are true and Reason (R) is a correct explanation of Assertion (A).
Both Assertion (A) and Reason (R) are true and Reason (R) is not a correct explanation of Assertion (A).
Assertion (A) is true and Reason (R) is false.
Assertion (A) is false and Reason (R) is true.
MCQ
Assertion and Reasoning
Advertisements
Solution
Assertion (A) is false and Reason (R) is true.
Explanation:
- Java is a case-sensitive language, so uppercase and lowercase letters are treated differently.
- For example,
Nameandnameare considered two different identifiers. Therefore, the assertion is false, while the reason is true.
shaalaa.com
Is there an error in this question or solution?
Chapter 1: Revision of Class 9 Syllabus - Exercises [Page 44]
