What is the function of the reserved word class?

Java reserved words. Java reserved words are keywords that are reserved by Java functions or other uses that cannot be used as identifiers (e.g., variable names, function names, class names). If a reserved word was used as a variable, you would get an error or unexpected result.

For More Information Please Refer: https://www.computerhope.com/jargon/j/java_reserved_words.htm