Monday, January 2, 2017

Keyword/ Reserve Words: in java

3. Keyword/ Reserve Words:

-------------------------------------------------------------------------------------------------------------
Keyword is a predefined word having both recognize and internal functionality.

Reserve word is a predefined word having only word recognize without the internal functionality.

EX: goto, const

To prepare java applications, java has provided the following keywords:

1. Data types & Return types:
byte, short, int, long, float, double, boolean, char, void

2. Access Modifiers:
public, protected, private, static, final, abstract, native, volatile, transient, synchronized, strictfp,...

3. Flow Controllers:
if, else, switch, case, default, for, while, do, continue, break, return,...

4. Class/Object Related Keywords:
class, extends, interface, implements, package, import, new, this, super, enum,....

5. Exception Handling Related Keywords:
throw, throws, try, catch, finally....

No comments:

Post a Comment