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

```
int[] list1 = {1, 2, 3, 4, 5, 6};
list1 = 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

b

Computer Science & Information Technology

You might also like to view...

In order to view the pixel grid, what menu command must be selected?

What will be an ideal response?

Computer Science & Information Technology

Identify thename:valuepair that includes a function name and its commands, which is used to add methods to a custom object.

A. var objName = {method: function() {commands}} B. var objName = {command.function() {method()}} C. var obj= {function() {commands}} D. var objName = {function:method() {commands}}

Computer Science & Information Technology