ICSE Class 9 Computer Applications Question 4 of 14

Values and Data Types — Question 4

Back to all questions
4
Question

Question 4

Why can't you use a keyword 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.