ExamVeda
Login
Home
11
What is the result of the following code in Java?
Integer a = 1000;
Integer b = 1000;
System.out.println(a == b);
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
12
In Java, which of the following is a valid autoboxing conversion?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
13
What is autounboxing in Java?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
14
What happens if you try to unbox a `null` reference in Java?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
15
In Java, which method can be used to perform autounboxing?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
16
What is the result of the following code in Java?
Double x = 3.5;
Double y = 3.5;
System.out.println(x.equals(y));
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
17
In Java, what is the result of the expression `Integer.valueOf(10) + Integer.valueOf(20)`?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
18
Which wrapper class corresponds to the `char` primitive type in Java?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
19
What is the result of the following code in Java?
Integer a = 100;
int b = a;
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
20
In Java, which method can be used to convert a string to an integer?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board