My Java is very limited, but yes, it would appear to be a duplicate. The fact that one is talking about String
and the other is talking about int
is inconsequential.
But review audits do not handle duplicates at all so you will never see an audit post that wants to you close as a duplicate. If you ever get a post that you think it an audit, you need to avoid the temptation to vote to close it as a duplicate from the review queue. Instead click through to see the question directly and then vote to close it there. You can then click leave open in the review queue (if you are positive it is an audit) or skip if you aren't.
Audits are automatically selected based on a number of criteria. The exact criteria depends on which review queue, but for the Close (and Reopen) queue the criteria is (per Shog's answer here):
- Recently asked
- Score between 5 and 15 (inclusive)
- Never locked, migrated, or deleted
- No close votes or downvotes, ever (only for close/reopen audits)
- (On Stack Overflow) at least 100 views
So it ended up getting selected because no one voted to close it as a duplicate and no one even downvoted it.
String
andint
declaration in Java are the same (I don't think there's a reason they would be different, I just don't know Java). That being said, the accepted answer on the first (duplicate) question better explains the situation than the accepted answer of the second (even thou a similar answer is available on the second question as well). And I would think that an emphasis should be put on both the question and the existing answers, not only on a question. Maybe that's why the audit failed.