What would be the output of the following Java application? 1. class MathComputer { 2. 3. 4. 5. 6. public static int com
Posted: Fri Jul 01, 2022 5:42 am
What would be the output of the following Java application? 1. class MathComputer { 2. 3. 4. 5. 6. public static int compute(int base, int top) { while(base < top) { base = base 2; } 7. 8. } 9. 10. class BootApplication { 11. 12. 13. 14. 15. } public static void main(String[] args) { int result = System.out.println(result); } A 100 } return base; C 80 B Stack OverflowError D 160 MathComputer.compute(10, 100);