Keywords
Keywords are predefined or reserved words that have special meaning to the Java compiler. Each keyword is assigned a special task or function and cannot be changed by the user. You cannot use keywords as variables or identifiers as they are a part of Java syntax itself. A keyword should always be written in lowercase as Java is a case sensitive language. Java supports various keywords, some of them are listed below:
| 01. abstract |
02. boolean |
03. byte |
04. break |
05. class |
| 06. case |
07. catch |
08. char |
09. continue |
10. default |
| 11. do |
12. double |
13. else |
14. extends |
15. final |
| 16. finally |
17. float |
18. for |
19. if |
20. implements |
| 21. import |
22. instanceof |
23. int |
24. interface |
25. long |
| 26. native |
27. new |
28. package |
29. private |
30. protected |
| 31. public |
32. return |
33. short |
34. static |
35. super |
| 36. switch |
37. synchronized |
38. this |
39. throw |
40. throws |
| 41. transient |
42. try |
43. void |
44. volatile |
45. while |
| 46. assert |
47. const |
48. enum |
49. goto |
50. strictfp |