Java While Loop with Switch: Infinite Loop and Final Value Analysis
The output will be an infinite loop, because the condition of the while loop (a < 5) will never be false.
If we assume that the loop will eventually be terminated, the final value of 'a' would be 16.
原文地址: https://www.cveoy.top/t/topic/oIp2 著作权归作者所有。请勿转载和采集!