This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I hope everyone is doing well. I recommend watching lots of MST3K for lots of uncontrollable lols.
Anyways apparently this is an incorrect statement:
Once assigned, the value of a primitive can't be modified.
This is also an incorrect statement:
A value can't be assigned to a primitive variable
The first one seems like it should be correct because primitive variables can be incremented and decremented with ++ and -- operators etc.
The second one seems like it should be correct because a primitive variable like int x is designed to hold different values like 1 or 1000 or 100_000 or any thing in its range.
Roel De Nijs wrote:The questions asks to select all incorrect statements. So the answers b, c & d are the incorrect statements and should be selected to answer this question correctly.
Wow, I just checked the book and I think your statement is correct. For some reason I had problems understanding the basic instructions. I seemed to select one blatant wrong answer and left the other blatant wrong answers alone as if the objective of the question changed half way through me answering it to selecting only correct statements.
I was tired when I wrote this post last night and took the practice exam. Hopefully, I will think with more brain cells when I take the OCAJ7. Thank-you Roel De Nijs for helping me understand where I went wrong.