- What Would Be The Output Of The Following Java Application 1 Class Mathcomputer 2 3 4 5 6 Public Static Int Com 1 (26.86 KiB) Viewed 31 times
What would be the output of the following Java application? 1. class MathComputer { 2. 3. 4. 5. 6. public static int com
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
What would be the output of the following Java application? 1. class MathComputer { 2. 3. 4. 5. 6. public static int com
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);