Examveda
Examveda

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.

B. Use the max() method.

C. Use the findMax() method.

D. Use the maximum() method.

Answer: Option A


This Question Belongs to Java Program >> Array

Join The Discussion

Related Questions on Array