Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

Why are JavaScript implementations so incompatible with each other, while Java implementations are compatible?

It is interesting to see how two languages born at about the same time, and released to the public just one week apart from each other - have become two completely different things. In addition to their

Java is the eldest, in the public sense, by about one week. Perhaps the more mature in other ways too.

Ironically, JavaScript managed to get passed as a standard by a European standards body called ECMA, which really is not known for computer programming language standards, it turns out.

Programs port from one version of Java to another easily. Crossing platform to platform is easy with Java

With JavaScript, two applications on the same computer don't even have compatible JavaScript interpreters. The groups making the interpreters do not seem to mind. Those writing programs in it tend to only target one of the many different ones out there.

Is this a sign of standardization? A total lack of portability? Really?

How come it got this way? Originally, there was only one Netscape.

1 Answer

Relevance
  • 1 decade ago
    Favorite Answer

    Just because their names are similar doesn't mean that they have anything in common.

    Granted, they share some common syntax, but that's it. There is no standard Javascript interpreter--think of how different browsers display HTML differently.

    Conversely, Sun Microsystems owns the patent to JAVA and is responsible for the JAVA Runtime Engine.

    Why is this? I couldn't say. Microsoft tried to push VBScript and Jscript on developers which is maybe why their Javascript interpreter varied so much from their #1 competitor Netscape.

Still have questions? Get your answers by asking now.