Earlier quoted context omitted.
So long as the specific code used to implement a method is different, anyone is free under the Copyright Act to write his or her own code to carry out exactly the same function or specification of any methods used in the Java API. It does not matter that the declaration or method header lines are identical. Emulators often require handling copyrighted materials like games or firmware, whereas APIs are not copyrightab…
The NES itself contains no code. Any NES emulator that ships with no software, or software under proper license (such as homebrew) is unambiguously legal. Does your PC, and the OS that drives it, suddenly become inherently illegal if you, as a user, installed pirated software? No, of course not.
Apple, beholden to copyright interests, is wary of software that allows even the possibility of copyright infringement. They just recently allowed video game emulators on their store.
It’s not a legal distinction, sure, but it’s also not apples to apples.