Java Reserved Keywords

Java Reserved Keywords


The Reversed Keywords In Java
Keywords are reserved words that provide special meaning to the compiler 
All keywords must be written in lower-case Java has -
  • 52 reserve words, In which 
  • 48 are keywords 
True, false, null, and goto are reserved words, but we can not count them in keywords.
Some keywords are - 
 
  • As we have seen already, The keywords const and goto are reserved but not used, and 
  • In addition to the keywords, Java reserves the following: true, false, and null. 
  • These are values defined by Java. You may not use these words for the names of variables, classes, etc.
int a = 10, b = 7;

System.out.println(a>b); // True
System.out.println(b>a); // false