The answer is the letter C and I will explain, this type of question I already noticed by the simulated ones that falls a lot in the OCA exam, you can't make additions with "++" operators like "++count" or "count++" in a static method with a normal instance variable. For the code to compile, the "count" instance variable must be static.
upvoted 2 times
...
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
MPignaProTech
2 months, 3 weeks agoTOPPSI
2 years agoiSnover
2 years, 3 months ago