Home / Questions / What does the token 'keyword' refer to, in the context of Java? Give an example for keyword.
Explanatory Question

What does the token 'keyword' refer to, in the context of Java? Give an example for keyword.

👁 94 Views
📘 Detailed Answer
🕒 Easy to Read
Read the answer carefully and go through the related questions on the right side to improve your understanding of this topic.

Answer with Explanation

In Java, a keyword is a reserved word that has a predefined meaning in the language and cannot be used for naming variables, classes, or methods. Example: public, class, void.