ICSE Class 10 Computer Applications Question 5 of 25

Values and Data Types — Question 5

Back to all questions
5
Question

Question 5

Why can a keyword not be used as a variable name?

Answer

Keywords are reserved words that have a special meaning to the Java compiler. As Java compiler reserves these words for its own use so they are not available as names for variables or methods.