KEYWORDS
Keywords are reserved words that convey a special meaning to the language
compiler.
compiler.
IDENTIFIERS
Identifiers are the fundamental building blocks of a program and are used
for general terminology for variables, objects and classes (Don’t worry we
will discuss about them very soon).
for general terminology for variables, objects and classes (Don’t worry we
will discuss about them very soon).
They should be created adhering to the following set of rules:-
- They can have alphabets, digits and doller sign.
- They must not be a keyword or boolean or a null literal.
- They must not begin with a digit.
LITERALS
Literals (also called consonants) are data item that are fixed data values.
Following are the types of literals:-
- Integer literal (whole numbers without any fractional part)
- Floating literal (also called Real Literals, they have fractional parts)
- Boolean literal ( represented by true or false)
- Character literal (one character enclosed in single quotes)
- String literal (sequence of zero or more characters surrounded by double quotes)
- Null literal
SEPERATORS/ PUNCTUATORS
The following are the ASCII (American Standard Code for Information Exchange):-
( ) { } [ ] ; , .
OPEARTORS
These are tools which manipulate data or which are used for calculations. It is a symbol which represents a particular operation to be performed on data values.
DATA TYPES
Java has two types of data types:-
- Primitive datatype which is a part of the language.
- Reference datatype are derived from the above. These can be classes, interfaces or arrays. It is used to store address of the objects (What are objects? Hold your horses for God’s sake!!).
No comments:
Post a Comment