Quiz Yourself on Math and Wrapper Classes

Attempt the following quiz to test your understanding of Math and wrapper classes

1

(Select all that apply.) Which code snippets will assign i equal to 0?

A)
Integer obj = new Integer ((int)Math.random());
int i = obj.intValue();
B)
Integer i = new Integer (0.0);
C)
Integer i = new Integer ("0");
Question 1 of 200 attempted

Get hands-on with 1200+ tech skills courses.