It is different in effect
Both MS Windows and Apple are closed products. But, to be fair to Microsoft, Windows is more open to third-party software than Apple is. There are no obstacles to supplying a Java environment that will run on Windows, and anybody can get the technical information about the Windows API needed to develop it. Apple makes life a bit more difficult for third-party developers who don't want to be part of Apple's walled garden.