Why Java is so popular?

Chengde SEO : the habitual residence of the Java programming language, the list has 20 years of history, its practicality, performance and backward compatibility are irreplaceable, even if it is to ignore the "age" is still ranked first

Today, Java is almost occupied the position of the C language once owned, while the C language has been the most talked about in front of the popular Java (1986 ranked second language Lisp, Ada and ranked third)

Why Java have been able to be so popular? as follows:

First, backward compatible

Sun Microsystems and Oracle Corporation in older versions of Java code that can ensure the normal operation to make great efforts on the new version. Ideal is full, the reality is very skinny (such as enumeration and JavaSE1.4 assertion in JavaSE5) though sometimes not backward compatible but also access to better achieve (generic), but backward compatible for developers remains attractive features. Nothing is better than to make a new version of the code to run correctly platform and modify the code for an older version of the normal things more trouble.

Second, practical

It enables developers to spend a minimum cost to complete the work, but also allows developers after a period of time to finish someone else's or your own code and express the willingness to develop original, you can write poor code readability , just do the same in other languages, but good coding style to make it more readable than other languages.

Third, the scalability / performance / reliability

Years of development and thousands of developers pushing each year, Java has become a solid platform, talking about scalability, you can look at those large enterprises using the Java language: Twitter (abandoned Ruby-on-Rails because they no longer have the extension sex), Facebook / Spotify / Scalesforce / eBay basic framework of large data projects, all using Java or Scala and runs on the JVM virtual machine. If you need good scalability and performance that Java and JVM is the best choice

Fourth, continue to heat

Starting in 2014, Java's degree are welcome to significantly improve, which is issued after the JDK8. JDK8 introduced Lambda expressions and Stream API. In a more efficient way for development under the Java developers can not learn a whole new language (like Scala) situation. Such features make it easier to be able to take advantage of multi-core / multi-processor machines, without having to write a lot of complex and potentially error-prone multi-threaded code. With the release of JDK 9 Jigsaw project initiated, we can see the large modular enterprise applications easier to build, deploy and maintain

Guess you like

Origin www.cnblogs.com/1994jinnan/p/11968561.html