I am talking about the major implementation platform of these platforms.
-
why are you interested in this? I'm just curious – ant Jul 08 '10 at 11:21
-
3because i am curious :). – Rohit Banga Jul 08 '10 at 11:22
-
Partial duplicate of http://stackoverflow.com/questions/410320/what-is-java-written-in – Håvard S Jul 08 '10 at 11:24
-
1what I meant to ask is what benefit will you get by obtaining that information, lets say its implemented in programming language X, ok now what is the benefit from obtaining that information? – ant Jul 08 '10 at 11:25
-
oh i have no such idea as of now. – Rohit Banga Jul 08 '10 at 11:44
-
I don't think there is a problem with being curious (although I also think the answer is easy to find with a little googling). It is particularly interesting if you think about self hosting JVMs that are themselves written in Java (like Jikes). – musiKk Jul 08 '10 at 12:03
4 Answers
For Java, the JVM itself is written in C++, probably with a little C or even assembler sprinkled in. The Standard API library, on the other hand, is written almost entirely in Java (with a few native methods implemented in C or C++).

- 342,105
- 78
- 482
- 720
-
Depends upon the implementation. Maxine and Jikes RVM (formerly Jalapeno) are almost entirely Java. I believe IBM also had one written in Smalltalk. – Tom Hawtin - tackline Jul 09 '10 at 00:13
The JVM provided by Sun (Hotspot) is written in C++, although parts of the standard Java library is written in Java as well.
The same goes for .NET. The VM and core libraries (interfacing with the underlying platform and native libraries) are written in C++ , the rest is written in C#.

- 23,244
- 8
- 61
- 72
I'm not sure about the dot net framework, but the jvm is build using a combination of c and java, see also the sources for yourself:

- 546
- 2
- 7
The bulk of the .Net framework is written in C#. Evidence for this would be Microsoft's Rotor project, which is basically the source code for much of the .Net framework. However, the core libraries are written in C++, including the virtual machine itself and the libraries that interface directly with the operating system.
As for Java, it is much the same as .Net in the way it is programmed.

- 889
- 6
- 11