A

Admin • 833.24K Points
Coach

Q. 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.
  • Correct Answer - Option(A)
  • Views: 34
  • Filed under category Java
  • Hashtags:

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.