Keywords In Java
Keywords In Java :-
Keywords are predefined reserved words in Java. These reserved keywords cannot be used as class names, variable or method names. There are nearly 50 keywords in java. Lets see the reserved keyword list in java with see how to remember this in shortly.
List of Keywords :-
Datatype(5):-
- boolean
- byte
- short
- char
- int
- float
- long
- double
9. public
10. private
11. protected
Modifier(8) :-
12. abstract
13. final
14. static
15. native
16. volatile
17. synchronized
18. transient
19. strictfp
Handle Exception(5) :-
20. try
21. catch
22. throw
23. throws
24. finally
Condition & loop(10) :-
25. if
26. else
27. switch
28. case
29. default
30. break
31. continue
32. for
33. while
34. do
Class Fundamental(14) :-
35. return
36. new
37. this
38. super
39. void
40. enum
41. assert
42. Instanceof
43. class
44. extends
45. interface
46. implements
47. package
48. import
Keyword not used(2) :-
49. const
50. goto
Post a Comment
Post a Comment