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