Computer Applications
Assertion (A): Java is an object-oriented programming language.
Reason (R): Java is case-sensitive.
Answer
Both Assertion (A) and Reason (R) are true and Reason (R) is not a correct explanation of Assertion(A)
Explanation
- Assertion (A): True. Java is an object-oriented programming language because it supports principles like encapsulation, inheritance, polymorphism, and abstraction.
- Reason (R): True. Java is case-sensitive, meaning
MyClassandmyclassare treated as different identifiers. - The Reason does not explain why Java is object-oriented, so it is not a correct explanation for the Assertion.