Test 2, q18
and the correctly compiled and located:
What is the result for Launcher? (These are correct, as per the book)
C. Compilation fails due to an error on line 5 of Launcher.
D. Compilation fails due to an error on line 6 of Launcher.
E. Compilation fails due to an error on line 7 of Launcher.
F. Compilation fails due to an error on line 8 of Launcher.
The correct option should be C only. Code in lines 6,7,8 may be seen as the trouble-makers as per theory.
Class utils is default. Hence the error :
Make Utils public and then you get :
Now D and E are correct.
PS : They did not/forgot to compile the code before putting them in the book ?