A Java program is a collection of number of instructions written in a meaningful order. Further instructions
are made up of keywords, variables, functions, objects, etc., which uses the Java character set defi ned by
Java. It is a collection of various characters, digits and symbols which can be used in a Java program (Table
2.1). It comprises the followings:
S. No.Elements of Java Character Set
1Upper case letters: A to Z
2Lower case letters: a to z
3Digits: 0 to 9
4Symbols (see the table below)
SymbolsNameSymbolsName
~Tilde>Greater than
<Less than&Ampersand
|Or/pipe#Hash
>=Greater than ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.