All the posts and topics that contain only an error report will be moved here after the error is corrected. This is to ensure that when users view a question in ETS Viewer, the "Discuss" button will not indicate the presence of a discussion that adds no value to the question.
That is why the option "main cannot access this.x as it is declared now i.e. without any modifier." is the correct option.
I am not sure what is your doubt. Can you please explain a bit more so that I can help?
Paul.
Ambiorix wrote:I'm not happy with any of the options.
The given correct answer
"main cannot access this.x as it is declared now i.e. without any modifier"
implies that, with the addition of a modifier, main could access this.x.
By making x static, main can access x but it still can't say 'this.x'
The part "i.e. without any modifier" is only a statement of the fact because that is how x has been declared as of now. It has been removed to avoid any confusion.