The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

maldanam (2) [Avatar] Offline
#1
Hi,

I think question 9 in chapter 1 is not answered correctly. I think the correct answer is a) instead of c) because de courseName attribute is declared with package visibility, and both declared classes belong to the same package (the default package).

Could you confirm I am right, please ?
maldanam (2) [Avatar] Offline
#2
Sorry, the question is answered correctly.

Which of the following statements will be true if the variable courseName is defined as a private variable?

And the correct answer is :

c) class EJavaGuru won’t compile.