HI guys, in thie question from
Glenn, Mitchell.
OCAJP Oracle Certified Associate
Java SE 8 Programmer Practice Exams (Kindle Locations 11644-11649). Enthuware. Kindle Edition.
Consider the following question...
Which of the following statements are correct ? Select 3 options
A. If run with an argument of 'false', it will print 'False False'
B. If run with an argument of 'false', it will print 'True True'
C. If run with an argument of 'true', it will print 'True False'
D. It will never print 'True True' E. It will not compile.
I answered A,C,D which are correct, but upon reflection, there is some unreachable code there and I wonder why this compile at all. Whatever value flag gets, this statement
will never be reached. Correct?