Keywords – Computer Sir Ki Class

Login


Lost your password?

Don't have an account ?
Register (It's FREE) ×
  

Login
[lwa]



Exam Questions-ICSE2016-01B #JAVA#4212    siteicon   siteicon  

Problem Statement - Keywords

What are keywords? Give an example.

Solution

TC++ #4212

Keywords are predefined words in a programming language that carry special meaning and are reserved for compiler use only. They can not be used as identifiers. Identifiers used within the predefined libraries are also no keyword. For example class, int, while, for are keywords while println, main etc are not keywords.

Notes

  • All keywords are reserved words but some reserved words like true, false and null are not keywords as they are literals for specific use.


Share

sunmitra| Created: 30-Mar-2018 | Updated: 16-Apr-2019|ICSE2016






Back