| 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
< 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(100.0)

B

scores.add(new int(100))

C

scores.add(100)

D

scores.add(Integer.parseInt(“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.

No comments yet. Be the first to comment!

AI Tutor

How can I help?

APFIVE © 2020.
Email: [email protected]|Privacy Policy