Vidyalelo
Java Programming · Q26

Array

Programming · Java Programming · question 26

Q26

In Java, how do you find the maximum element in an array?

A.
Use a loop to compare each element with the maximum value found so far.
Answer
B.
Use the max() method.
C.
Use the findMax() method.
D.
Use the maximum() method.

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board