Are you taking CLEP classes? Try clep.ai
| preferred AP College board partner for AP classes
AP Computer Science A/Unit 7: ArrayList
Start Practice TestPractice Test
About Exam
easy Solved by 2 students

ArrayList Autoboxing

Mark
< Prev
Next >

Given the following declaration:

ArrayList<Integer> scores = new ArrayList<>();

Which statement correctly adds the primitive integer 100 to the scores list using autoboxing?

A

scores.add(Integer.parseInt(“100”))

B

scores.add(new int(100))

C

scores.add(100.0)

D

scores.add(100)

Hint
Did You Know?
Explain Why
Explain All Answers
Check Answer
Show Correct Answer
Report Question

Question Leaderboard

Not enough data yet to show leaderboard.

AI Tutor

How can I help?

APFIVE © 2020.
Email: apfive@apfive.org|Privacy Policy|