KnowledgeBoat Logo

Computer Applications

Why can't you use a keyword as a variable name?

Values & Data Types Java

ICSE

33 Likes

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.

Answered By

17 Likes


Related Questions