Core Java Keywords
Core Java Keywords
CORE JAVA
By Virendra Patel
Join Telegram Channel
BEECHTOWN HOSPITAL
Reserved words or Keywords
a keyword is a word that is reserved by a program because
the word has a special meaning.
Every programming language has a set of keywords
cannot be used as variable names.
Keywords are sometimes called reserved names .
Java Language Reserved Words
true, false, and null might seem like keywords, but they are actually literals; you cannot use them as identifiers
in your programs.
Java Language Reserved Words
Reserved Literals
Reserved Words 5.9%
Reserved Literals ( 3 )
Keywords ( 50 )
used ( 48 )
unused ( 2 )
Keywords
94.1%
Reserved words for data types
1. byte
2. short
3. int
8
4. long
5. float
6. double
7. char
8. boolean
Reserved words for flow control
1. if
19
2. else
3. switch
4. case
5. default
6. for
7. do
8. white
9. break
10.continue
11.return
Keywords for modifiers
1. public
30
2. private
3. protected
4. static
5. final
6. abstract
7. synchronized
8. native
9. strictfp
10.transient
11.volatile
Keywords for exception handling
1. try
2. catch
36
3. finally
4. throw
5. throws
6. assert
Class related keywords
1. class
2. package
42
3. import
4. extends
5. implements
6. interface
Object related keywords
1. new
2. this
3. super
46
4. instanceof
47
Reserved literals
1. true
2. false 53
3. null
Unused keywords
1. goto
2. const
Enum
represents a group of constants
Identify the incorrect statement about java
keywords