As far as I know Javac or any other compiler never try to find program is in infinite loop or not. because one can not write a program to find a program is in infinite loop with complete accuracy.
Then how they identify unreachable statement? see the code below... both the code are in infinite loop
class foo
{
public static void main(String[]
(
Read more... )