Page 77 - CA_Blue( J )_Class9
P. 77
12 System.out.println("Rounded Off value of average: " +i);
13 System.out.println("Actual value of average is: "+average);
14 }
15 }
You will get the following output:
Let’s Revisit
Character sets in Java consist of Alphabets, Digits, Operators and Delimiters.
There are two types of encoding procedures – ASCII CODE and UNICODE.
Escape sequences are non-graphical characters preceded by backslash to perform some specific task.
A token is the smallest individual element of a java program that is meaningful to the compiler and takes part in
effective execution of the program.
Keywords are the pre-defined words that are reserved by Java compiler for a specific purpose.
Variable is name of reserved area allocated in computer memory.
Literals or constants are values cannot be changed once assigned and used by programmers.
Identifiers are user-defined names consisting of any sequence of letters and digits starting with either a letter or
underscore (_).
Operators are special symbols that signify the compiler to perform some specific mathematical or
non-mathematical operations on one or more operands.
Data types specifies the size and type of values that can be stored in an identifier.
Type conversion is a process of changing one type value to another type
Boolean data type cannot be converted to any other data types or vice versa.
Values and Types 75

