Final Java 2023
Final Java 2023
3. Keyword …… requests memory from the system to store an object, then calls the
corresponding class’s constructor to initialize the object.
a. class b. import c. new d. none of these
6. int a = 90;
switch(a){
case 80:
case 90: System.out.println(90 +“ ”);
default: System.out.println(“default ”); }
a. default b. 90 c. 80 90 default d. 90 default
7. If x is 1, what is x after this expression (1<x)&(x<100)?
a. true b. false c. 100 d. 1
8. How many times does the following code snippet display “Loop Execution”? for(int i=0;
i<10; i++);{ System.out.println(“Loop Execution”);}
a. 9 b. 10 c. 11 d. 1