Question: What is the output of the following unknown method? public class Strange { public static final int MAX 5; 3 4 public static void unknown
What is the output of the following unknown method?

public class Strange { public static final int MAX 5; 3 4 public static void unknown () { int number = 0; 7 for (int count MAX; count >= 1; count--) { %3D 8 number += (count * count); 9. 10 11 System.out.println ("The result is: " + number); 12 13 14 public static void main (String[] args) { 15 unknown () ; 16 17 2.
Step by Step Solution
3.56 Rating (174 Votes )
There are 3 Steps involved in it
Output o... View full answer
Get step-by-step solutions from verified subject matter experts
