PrepAway - Latest Free Exam Questions & Answers

Which code segment should you use?

You are modifying an existing banking application.
The application includes an Account class and a Customer class. The following code segment defines the
classes.

You populate a collection named customerCollection with Customer and Account objects by using the following
code segment:

You create a largeCustomerAccounts collection to store the Account objects by using the following code
segment:Collection<Account> largeCustomerAccounts = new Collection<Account> ();
All accounts with a Balance value greater than or equal to 1,000,000 must be tracked.
You need to populate the largeCustomerAccounts collection with Account objects.
Which code segment should you use?

PrepAway - Latest Free Exam Questions & Answers

A.
Option A

B.
Option B

C.
Option C

D.
Option D


Leave a Reply