Java SE 8 Programmer 1Z0–808 Practice Full Test 1
© examsiri.com
Question : 64 of 84
Marks:
+1,
-0
You are asked to create a method that accepts an array of integers and returns the highest value from that array.
Given the code fragment:
which method signature do you use at line n1 ?
Given the code fragment:
class Test {
public static void main(String[] args) {
int numbers[] = { 12, 13, 42, 32, 15, 156, 23, 51, 12 };
int max = findMax(numbers);
}
/* line nl */ {
int max = 0;
/* code goes here */
return max;
}
}which method signature do you use at line n1 ?
Go to Question: