Keywords

Keywords are special words in Java whose meanings are already defined by the compiler. These words are reserved by the Java language, which means they cannot be used as identifiers (like variable, class, or method names).

That’s why keywords are also called "reserved words" — because they are reserved from user-defined use.

Total number of Keywords in Java

Categories of Reserved Words:

  • Used Keywords (65): Actually used in Java programs like class, if, for, int, etc.
  • Unused Keywords (2): const and goto are reserved for future use but currently not used in Java.
  • Reserved Literals (3): true, false, and null are not technically keywords, but they are also reserved and can’t be used as identifiers.

Reserved words in Java are:

List of Java Reserved Words

Summary:

  • You cannot use any reserved word as a variable name, class name, or method name.
  • These words are predefined by the language and have specific purposes.
  • Trying to use them as identifiers will result in a compile-time error.

Welcome to ShikshaSanchar!

ShikshaSanchar is a simple and helpful learning platform made for students who feel stressed by exams, assignments, or confusing topics. Here, you can study with clarity and confidence.

Here, learning is made simple. Notes are written in easy English, filled with clear theory, code examples, outputs, and real-life explanations — designed especially for students like you who want to understand, not just memorize.

Whether you’re from school, college, or someone learning out of curiosity — this site is for you. We’re here to help you in your exams, daily studies, and even to build a strong base for your future.

Each note on this platform is carefully prepared to suit all levels — beginner to advanced. You’ll find topics explained step by step, just like a good teacher would do in class. And the best part? You can study at your pace, anytime, anywhere.

Happy Learning! – Team ShikshaSanchar