Reserved words are words that can't be used as identifiers. Many of them are keywords that have a special purpose in Java.
A literal in Java technology denotes a constant value. So for example 0 is an integer literal, and
It is important to note the following
abstract | boolean | break | byte | case | catch |
char | class | const | continue | default | do |
double | else | extends | final | finally | float |
for | goto | if | implements | import | instanceof |
int | interface | long | native | new | null |
package | private | protected | public | return | short |
static | strictfp | super | switch | synchronized | this |
throw | throws | transient | try | void | volatile |
while | assert | enum |
It is important to note the following
- const and goto are not currently in use.
- null, true, and false are reserved literals but can be considered as reserved words for the purpose of exam.
- It is important to understand that Java language is case-sensitive. So even though super is a keyword, Super is not.
- All the Java technology keywords are in lower case.
- strictfp is a new keyword added in Java 1.2. assert is added in Java 1.4 and enum in Java 5.0
It's toooo Helpful thankssssssss.........
ReplyDelete