The first prototype was in Perl. They rewrote that in C++ a long time ago. Then after the site outages a few years ago they rewrote for scalability, and part of that rewrite was porting it to Java. (My personal opinion is that changes in the database architecture deserve more credit for the improvements in scaleability than the switch in languages.)
It currently is written in Java and runs on Windows.