Computer Applications
Explain the following statement — "In Java, total, Total, ToTaL, and TOTAL are all different identifiers."
Values & Data Types Java
61 Likes
Answer
Java is a case sensitive language. total, Total, ToTaL, and TOTAL have the same set of letters but they differ in the case of these letters. Therefore, Java considers each of them as a different identifier.
Answered By
34 Likes
Related Questions
Which of the following are Java keywords?
area, input, class, public, int, x, y, radius, long, Hello javaWhat are identifiers in Java? List three identifier formation rules.
Which of the following are invalid identifiers?
i. ten
ii. "Hello"
iii. 5678
iv. Coffee
v. $dollar
vi. 4Variables
vii. _varHow would you print characters like \, ' and " in Java?