View Full Version : Java & .net apis

25th October 2008, 11:48 PM
I'm curious as to how the apis themselves currently compare, in terms of features.
What does java have that .net does not and vice versa?

7th November 2008, 02:38 PM
If I'm not mistaken .net isn't a programming language itself but it's made up of 32 different languages. Java is just one language.

8th November 2008, 03:42 PM
the typical marketing is that .net supports multiple languages and java supports multiple platforms...
there are other languages that target the jvm though (take jython (http://www.jython.org/docs/jythonc.html) for example)
and .net code can be run on other platforms (such as using mono (http://www.mono-project.net/))

and while different languages do have their advantages and disadvantages, most power as far as I'm concerned comes from the libraries.

java and .net have a lot of similarities, to the point that you can convert a lot of code/bytecode from one to the other fairly easily, often getting pretty close even with simple find&replace... a lot of the class names are the same too.
there are limitations to that of course... mainly on the lines of what one supports that the other doesn't.

basically, what I'm after are the differences in the standard libraries included with java and .net, if that makes it clearer.