Sorry, but this is just FUD. It's wrong for a million different reasons, one being that Windows never identified itself as version 95 or 98. Both of those are marketing names, under which those products were sold, but the actual version numbers reported by Windows are listed here:
Operating System Version (Windows)
Furthermore, Windows 10 identifies as version 6.4. As you can see "Windows 9" or even just "9" were never used as a "real" version identifier. Not ever. Windows 95 was actually Windows 4.0.
If you are talking about how the Java platform dealt with version numbers (not Windows), then yes, some Java programmers may have created buggy code by only checking part of the version string that was reported by the JVM, but it's very unlikely that MS decided to change their product's version number based on bugs that a minority of unskilled java programmers created over a decade ago.