The reverse method is defined in this section. What is list1 after executing the following statements?

```
int[] list1 = {1, 2, 3, 4, 5, 6};
int[] list2 = reverse(list1);
```
a. list1 is 1 2 3 4 5 6
b. list1 is 6 5 4 3 2 1
c. list1 is 0 0 0 0 0 0
d. list1 is 6 6 6 6 6 6

a. list1 is 1 2 3 4 5 6

Computer Science & Information Technology

You might also like to view...

Custom file properties that are added to files as key words which enable you to categorize and organize files are called ________

A) labels B) tags C) marks D) tabs

Computer Science & Information Technology

Match the terms with their descriptions

I. Depreciation schedule II. Amortization table III. Capital budgeting IV. Cash flow V. Principal A. Evaluates whether long-term investments are worth pursuing B. Shows depreciation of an asset over time C. Calculates interest and principal payments along with the remaining balance of a loan D. The balance on a loan E. Movement of cash in and out of a business

Computer Science & Information Technology