- Keywords in java can be defined as reserved words or pre-defined words having their own importance and each keyword has its own importance and each keyword has its own functionality.
- Since keywords are reserved words used by the compiler so they cannot be used as variable names.
- If the keywords are used as the variable names it means that we are assigning a different meaning to the keyword which is not allowed.
- Java has a total of 51 keywords that have predefined meaning and are reserved for use by Java .49 keywords are currently used while the remaining 2 are no more used.
- All java keywords must be written in lower case.
KEYWORDS IN C
auto | double | int | struct |
break | else | long | switch |
case | enum | register | typedef |
char | extern | return | union |
const | float | short | unsigned |
continue | for | signed | void |
default | goto | sizeof | volatile |
do | if | static | while |
Keyword Types
Keyword Types | Keywords |
Data types |
int char float double |
Qualifiers |
signed unsigned short long |
User-defined |
typedef Enum |
Storage Classes |
auto register static extern |
Loop |
For While Do |
Decision |
if else switch case default |
Jump |
Break continue Goto |
Derived |
struct union |
function |
void return |
Others |
const volatile sizeof |