KnowledgeBoat Logo
|

Computer Applications

Java is a case sensitive language. Explain.

Java Intro

142 Likes

Answer

Java is case sensitive language means that it distinguishes between upper case and lower case characters. Consider the below code snippet:

int studentMarks;
StudentMarks = 85;

This will give a compilation error as Java will treat studentMarks and StudentMarks as two different variables because the case of the characters is not same in both.

Answered By

79 Likes


Related Questions