Does Java recognize infinite loops?
I’ll just quote the Java Language Specification, as it’s rather clear on this: This section is devoted to a precise explanation of the word “reachable.” The idea is that there must be some possible execution path from the beginning of the constructor, method, instance initializer or static initializer that contains the statement to the statement … Read more