Keywords in Java.
Keywords in Java
- The word which is pre-defined in the library is called keyword.
- It's functionality is also pre-defined.
- Keyword can not be used as a varible,function name ,class name or as an any identifier.
- Example of keywords are int,float,char,void,main etc.
List of keywords in Java
char | continue | double | else |
default | catch | finally | final |
long | interface | int | instanceof |
assert | abstract | class | extends |
implements | float | const | boolean |
private | public | protected | package |
break | byte | case | do |
enum | for | goto | if |
import | native | new | return |
strictfp | synchronized | static | short |
super | switch | this | throw |
throws | transient | try | void |
volatile | while |