Question 1 of 25
Hints left: 3
Q1
What is the result of the following code in Java? Integer a = 1000; Integer b = 1000; System.out.println(a == b);
Q2
In Java, what is the result of the expression `new Integer(5) == 5`?
Q3
In Java, what is the result of the expression `Integer.valueOf(10) + Integer.valueOf(20)`?
Q4
Which of the below statement about JUnit is false?
Q5
In Java, which method can be used to perform autounboxing?
Q6
JUnits are used for which type of testing?
Q7
What is the result of the following code in Java? Integer a = 100; int b = a;
Q8
Which of the below is an incorrect annotation with respect to JUnits?
Q9
In Java, which method can be used to perform autounboxing?
Q10
In Java, which method can be used to convert a string to an integer?
Q11
Which method is used to verify the actual and expected results in Junits?
Q12
In Java, what is the result of the expression `new Integer(5).equals(5)`?
Q13
What happens if you try to unbox a `null` reference in Java?
Q14
What is the result of the following code in Java? Double x = 3.5; Double y = 3.5; System.out.println(x.equals(y));
Q15
In Java, which of the following is a valid autoboxing conversion?
Q16
Which of these is not a mocking framework?
Q17
In Java, what is the result of the expression `Integer.valueOf(10).equals(Integer.valueOf(10))`?
Q18
Which of the following is an example of autoboxing in Java?
Q19
In Java, which of the following is an example of autounboxing?
Q20
What happens if you try to unbox a `null` reference in Java?
Q21
What is autounboxing in Java?
Q22
Which wrapper class corresponds to the `char` primitive type in Java?
Q23
What is the result of the following code in Java? Integer num = null; int result = num + 5;
Q24
What is the result of the following code in Java? Integer num1 = 100; Integer num2 = 100; System.out.println(num1 == num2);
Q25
What is the result of the following code in Java? Integer x = 1000; Integer y = 1000; System.out.println(x.equals(y));