Revision Questions For Oop2 Java
Revision Questions For Oop2 Java
1.The Java interpreter is used for the execution of the source code.
True False
b) False
b) False.
b) False
b)False
13) When a string literal is used in the program, Java automatically creates instances of the string
class. a)True
b)False
String[ s]:
String s[ ]:
0 to 216-1
0 to 215-1
Operators
1) What are operators and what are the various types of operators available in Java?
2) The ++ operator is used for incrementing and the -- operator is used for
decrementing. a)True
b)False
3
5
Control Statements
1) What are the programming constructs?
2) class conditional {
5) The while loop repeats a set of code while the condition is false. a)True
b)False
6) The do-while loop repeats a set of code atleast once before the condition is tested. a)True
b)False
8) The for loop repeats a set of statements a certain number of times until a condition is
matched. a)True
b)False