Originally posted by sankar velamuri:
can any one please explain why the if(false) does not say the print statement unreachable and compiles, but the while(false) says the statement is unreachable.
This is actually defined in the
Java specification. The "if (debugging)" contruct is so often used to turn on/off debugging code, that the unreachabily check has been turned off for "if" statements.
Henry