Now, the scripting language arise, especially Ruby. And more and more company use RoR instead of J2EE, does it means the scripting language beat down java?
There is no "best computer language." There is no "best cuisine." There is no "best gender." There is no "best race." There is no "best joke." There is no "best nation." There is no "best sport." There is no "best religion." There is no "best color." There is no "best city." There is no "best singer." There is no "best looking person." There is no "best book." There is no "best personality."
There is a "best website." And you're looking at it.
All depends on the context... for a small, quick site, perhaps RoR beats java. For a tutorial for bored Java developers, perhaps the sexy RoR beats Java.
For a large e-commerce site, my money is on J2EE over RoR every time.
"There have been a number of language[s] coming up lately," noted James Gosling today at Sun�s World Wide Education & Research Conference in New York City when asked if Java was in any kind of danger from the newcomers. "PHP and Ruby are perfectly fine systems," he continued, "but they are scripting languages and get their power through specialization: they just generate web pages. But none of them attempt any serious breadth in the application domain and they both have really serious scaling and performance problems."
On the other hand, any discussion about Java "versus" PHP or Ruby or any other language is in many ways moot, Gosling also stressed:
"We also tried to work with all these languages ,so that Java works with PHP and works with Python, so you can do the web presentation layer in PHP and the analytics in Java. Lots of people do that."