Advertisements
Advertisements
Question
Java is a case sensitive language. Which is the most appropriate statement with respect to this context?
Options
Upper and lowercase letters are distinguished.
Upper and lowercase letters are ignored.
Only lowercase letters are distinguished.
None.
MCQ
Solution
Upper and lowercase letters are distinguished.
Explanation:
- Case sensitivity in programming means that the language differentiates between uppercase and lowercase letters.
- In Java, uppercase and lowercase letters are distinct. This means MyVariable, myvariable, and MYVARIABLE are treated as three different identifiers.
shaalaa.com
Is there an error in this question or solution?