What is the difference between keywords and reserved words in java.
#CONTENT QUALITY REQUIRED
#SPAM ANSWERS WILL BE DELETED
#ANSWER AS SOON AS POSSIBLE
#ANSWER ONLY IF YOU HAVE KNOWLEDGE
#ICSEIANS PREFERRED
Answers
Answered by
1
keywords have a special meaning in a language and are a part of syntax.
rrserve words are words that can not be used as identifier because they are reserved by language
rrserve words are words that can not be used as identifier because they are reserved by language
AmeyaShri123:
can keywords be used as identifiers?
Answered by
2
A short note on the difference between keywords and Reserved keywords in Java:
(1) In Java, Keywords are predefined identifiers which have a special meaning and functionalities. These keywords cannot be used for identifiers. Ex: public.
(2) In Java, Reserved words are words that are reserved to use in future.These cannot be used as identifiers. Ex: goto and const.
Hope this helps!
(1) In Java, Keywords are predefined identifiers which have a special meaning and functionalities. These keywords cannot be used for identifiers. Ex: public.
(2) In Java, Reserved words are words that are reserved to use in future.These cannot be used as identifiers. Ex: goto and const.
Hope this helps!
Similar questions