Beruflich Dokumente
Kultur Dokumente
the syllabus
Sl. Key Description
No wor
d
1 Byte Represents smallest integer in the range -
128 to 127. Its size in bits is 8
2 Short Represents integer value in the range -
32767 to 32768. Its size in bits is 16.
3 Int Represents integer value in the range -231
to 231-1. It is the default data type in java
among integers. Its size in bits is 32.
4 Long Represents integer value in the range -263
to 263-1. Its size in bits is 64.
5 Float Represents real numbers with fractional
precision in the range -3.4 x 10-38
to 3.4 x 1038. Its size in bits is 32. It is used to
represent single precision numbers.
6 doub Represents real numbers with fractional
le precision in the range -1.7 x 10-308
to 1.7 x 10308. Its size in bits is 64. It is used to
represent double precision numbers.
7 Char Represents characters found in all the
human languages which is called Unicode
in the range 0 to 65, 536. It also represents
standard set of characters known as ASCII
in the range 1 to 127. Its size in bits is 16.
8 boole Represents logical values true and false.
an Java reserves 8 bits, but uses only 1 bit. 1
represents true value and 0 represents
false value.
9 Final Used with variables to represent their
value as constant. It cannot be changed
during the runtime/ compile time of the
program.
10 Void Indicates the method/function doesn’t
return any value.
11 Retur Transfers the control from the method to
n its calling place. It can be used to return
any type of value. It should be the last
statement in the method definition.
12 Static Can be used to declare the data members
and methods. If declared so, the data
members and methods can be accessed
without the help of an object in the same
class. In other class, they can be accessed
using class name and dot operator.
13 This Used to resolve the conflict between the
data members/instance variables and
formal parameters. It refers to the current
object created for the class.
14 New Allocates memory space to all the data
members of the class and initializes to their
default values when no constructor
defined for the class.
15 If Used to make decisions in java.
16 Else Used as alternative to if when the
condition is false.
17 Switc Used to test the value of the given
h variable or expression against a list of case
values.
18 Case To represent labels/constants in a switch
block.
19 defa Gets executed when none of the case
ult labels/constants matches with the input.
20 Brea Used to exit from switch block or loop.
k
21 conti Used to force early iteration in for loop.
nue When used in while and do while block,
the control gets transferred to while
expression.
22 impo To access the classes present in the
rt package.
23 pack To define the user-defined package to
age group similar classes.
24 While It repeats the block of statements while
the expression that controls is true.
25 Do It executes the block of statements, then
checks the while expression.
26 For It is also a looping statement, used mainly
for pre-determined number of iterations.
27 Class It is the fundamental building block of the
Object Oriented Programming. It
encapsulates code(methods/functions) and
data.
28 priva It is used declare the data member and
te member function of a class to be accessed
only by other member methods of the
same class.
29 publi It is used declare the data member and
c member function of a class to be accessed
by other member methods of the same
class/different class within the package as
well as by the classes present in other
packages.
30 prote It is used declare the data member and
cted member function of a class to be accessed
by other member methods of the same
class/different class within the same
package or by the sub class in inheritance
concept.
31 Throw To report user-defined errors during the
runtime of the program
32 throws Informs that error has occurred in an
input/output operation during the
runtime of the program.
33 Try Detects errors during the runtime of the
programs by passing the error message to
exception object in the catch block.
34 Catch Displays the errors detected by the try
block during the runtime.
17 Nested if if(condition)
statement {
if(Condition)
statements;
}
18 if…else if if(condition)
statement {
statements;
}
else if(condition)
{
statements;
}
.
.
else
{
statements;
}
19 switch switch(expression)
statement {
case label1:
statements;
break;
.
.
.
case labeln:
statements;
break;
default:
statement;
}
20 Ternary Var=expression1?expression2:ex
Operator pression3;
21 while statement while(expression)
{
statements;
}
22 do while do
statement {
statements;
}while(expression);
23 for statement for(initialization; condition;
updation)
{
statements;
}
24 Nested while while(expression)
statement {
while(expression)
{
statements;
}
}
25 Nested do while do
statement {
do
{
statements;
}while(expression);
}while(expression);