TOTAL QS = 20Time [ 00 : 00 : 00 ]

Java Wrapper Autoboxing and Unboxing Basics Online Practice Test 1


Total Questions: 20

Total Minutes: 20

This ExamTray Free Online Test or Quiz or Trivia tests your Programming Skills on the basics of Java Autoboxing and Unboxing. This practice test displays answers after finishing the exam for review. You can easily clear Competitive Exams and Job Interview Questions. Students can learn Java basics.

Go through Java Theory Notes on Wrappers and Autoboxing before attempting this test.

All the Best

Challenge SCORE

0 / 20

Take This Exam
1) Choose a correct statement about Autoboxing in Java?
2) Which does autoboxing or unboxing in Java?
3) Autoboxing or unboxing involves replacement of Wrapper objects with Primitives and vice versa. State TRUE or FALSE.
4) Which Java version introduced the feature Autoboxing and Unboxing?
5) What is the need for Autoboxing and Unboxing in Java?
6) Choose the right statement which does autoboxing in Java?
7) Choose the correct way of autoboxing Primitives to Wrapper objects below?
8) Does the below Java code undergoes autoboxing correctly?
long weight = 10;
Long wei = weight;
9) Auto-boxing or Auto-unboxing involves assignment (not always) in Java. State TRUE or FALSE.
10) Auto-boxing or Auto-unboxing does not work inside static methods in Java. State TRUE or FALSE
11) What is the output of the below java code with autoboxing?
public class AutoBoxingTest2
  static void show(int reading)
    System.out.println("Reading: " + reading);
  public static void main(String[] args)
    Integer a = Integer.valueOf(10);
12) Which is faster Auto-boxing or Auto-unboxing?
13) Does autoboxing work with creation of an Array in Java?
14) Autoboxing or Auto-unboxing works with ___ in Java.
15) Autoboxing or Auto-unboxing is ___ in Java.
16) Choose the correct code that does auto-unboxing?
17) What is the output of the below Java code snippet that use Autoboxing and Unboxing?
public class AutoUnboxingTest1
  public static void main(String[] args)
    int apple1 = 10;
    Integer apple2 = 10;
    if(apple1 == apple2)
18) Autoboxing and unboxing in Java language saves the programmer from errors and extra lines of code. State TRUE or FALSE.
19) What is the output of the below Java code with Autoboxing and unboxing?
float f1 = 10.0f;
Float f2 = Float.valueOf(10);
if(f1 == f2)
  System.out.println("FLOATs are equal.");
  System.out.println("FLOATs are not equal.");
20) Choose the correct statement with auto-unboxing in Java?
Certification Group ID

Open Certification Helper Popup Reset Popup