Course Hero Logo

Edited - 7.1 Topic Questions.pdf - AP COMPUTER SCIENCE A...

Course Hero uses AI to attempt to automatically extract content from documents to surface to you and others so you can study better, e.g., in search results, to enrich docs, and more. This preview shows page 1 out of 1 page.

1.Consider the following statement, which is intended to create anArrayListnamedtheater_clubto storeelements of typeStudent. Assume that theStudentclass has been properly defined and includes a no-parameter constructor.ArrayList<Student> theater_club = new /*missing code*/;Which choice can replace/*missing code*/so that the statement compiles without error?(A)Student()(B)Student ArrayList()(C)ArrayList(Student)(D)ArrayList<Student>()(E)ArrayList<theater_club>()
2.Consider the following statement, which is intended to create anArrayListnamedvaluesthat can be usedto storeIntegerelements./*missing code*/ = new ArrayList<>();Which of the following can be used to replace/*missing code*/so that the statement compiles without error?
End of preview. Want to read the entire page?

Upload your study docs or become a

Course Hero member to access this document

Term
Fall
Professor
Montague
Tags
Computer Science, English language films, Syntax highlighting

Newly uploaded documents

Show More

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture