HI guys, I have a question about the following code please (Glenn, Mitchell.
OCAJP Oracle Certified Associate
Java SE 8 Programmer Practice Exams (Kindle Locations 14185-14189). Enthuware. Kindle Edition. ):
This is supposed to print 1 2 3 4. Now, I have read (must admit not religiously but gave a good look) at the links that Roel De Nijs kindly provided me with in a different
thread (on unreachable code that is), but I couldn't find anything similar to this, so I thought I'd post it.
I know by now that Java relazes the rule of unreachable code when it comes down to if statement, but here I can see that the statement
will never be reached, yet the code compiles OK. Why is that please? thanks!