Q. In Java, how do you find the maximum element in an array?
β
Correct Answer: (A)
Use a loop to compare each element with the maximum value found so far.
You must be Logged in to update hint/solution