Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JAVA 1.5

 
Priti Sharma
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In which language, the java 1.5 is written? Is it written in basic java?
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is no single answer to the question, as it is ambigious.

The Java Language Specification is written in some form of English, as should be obvious.

If you are referring to the Sun JDK (and this might be different for JDKs from other vendors), most of the class library and the tools like javac are written in Java, with some native code mixed in, probably written mostly in C.

As far as I know, the JVM is written in C, too.
 
Bill Shirley
Ranch Hand
Posts: 457
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is not uncommon for a language to be written in itself, though it may seem counter intuitive.

I know GNU C Compiler was written (almost) entirely in C. (It's prob'ly even more complex today - my knowledge backdates 15 years.)

You'd use the native C compiler (available on any UN*X box) to compile gcc. Then Use the new gcc to compile itself again, because there are a LOT of optimizations in the gcc compiler that don't exist in the standard compilers.

And of course, just compile version N+1 with version N.
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
jikes -a free compiler originating from IBM- is written in C.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic