Java- The Internet Programming Language

Java



Java was one of the most premiere languages on the web in the early days of the internet, as Java applets were in widespread use. Today, Java is still a very powerful language on the web, but doesn't have the dominance that it once had, with the widespread discontinuation of applets.

In fact, one of the reasons Java gained prominence was because of its portability. This made it very web friendly.

However, the adoption of languages more suitable for the web emerged, such as PHP, Python, Ruby, etc. that gained traction and largely displaced Java.

Today, Java is still used for the web, especially for server-side applications. In fact, Java has great performance and scalability for web applications. This makes it used widely in some of the biggest and most powerful sites. One such notable example is Amazon.com, which utilizes Java for backend applications.

Java is mostly used for large web projects, with smaller to medium sites not needing such tremendous power.

One of the reasons Java is used for larger websites than other languages such as PHP or Python or Ruby is because it's faster. Once a website grows to a certain point and it gets so many users and database requests and page views, it has to scale fast. The language on the server has to be very fast, processing all these user requests, without failing.

Java is the best for this. PHP, Python, Ruby are slower, so if a website gets to a certain point and there are constant server-side requests, it won't scale well.

An example of this is Twitter, which at first supported by the Ruby on Rails web framework. Once it got to a certain point of usage, it no longer scaled well and was switched over to Java's JVM. This made it quicker and scale much better.

So Java today on the web still has its place and is still tremendously powerful. However, for small to medium websites, it can be seen as unnecessary, being that a language such as PHP, Python, or Ruby can do the job well. Small or medium websites simply would not have the traffic and server-side requests that these languages wouldn't be able to manage.

But for extremely large websites such as Amazon.com, Java is powerful and allows for tremendous scaling that other languages would have difficulty achieving or could not achieve.