πŸ“Š JAVA
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.
πŸ’¬ Discuss
βœ… 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

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
111
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Ram Avtar Sharma
Publisher
πŸ“ˆ
89%
Success Rate