背景:有人问我为什么java这么流行,我去网上找了一个,可能是如下的原因。
Why is Java so popular?
One of the biggest reasons why Java is so popular is the platform independence. Programs can run on several different types of computer; as long as the computer has a Java Runtime Environment (JRE) installed, a Java program can run on it.
Most types of computers will be compatible with a JRE including PCs running on Windows, Macintosh computers, Unix or Linux computers, and large mainframe computers, as well as mobile phones.
Since it has been around for so long, some of the biggest organisations in the world are built using the language. Many banks, retailers, insurance companies, utilities, and manufacturers all use Java.
Steve Zara, a programmer for more than 40 years, describes how there is no sign of Java declining in use. Instead, it is an evolving language which almost uniquely combines stability with innovation.
Highlighting the longevity of the language, Zara states that the code you may have written 15 years ago will run on the most up-to-date JVMs and gain the speed advantage of the latest profiling, native code translating, and memory management.
Java is fundamentally object-oriented. The code is so robust because Java objects contain no references to data external to themselves.
The language is considered to be very simple; however, it comes with a library of classes that offer commonly used utility functions that most Java programs can’t work without.
Java API, the class library, is as much a part of Java as the language itself. In actuality, the genuine challenge of learning how to use Java isn’t learning the language, but learning the API.
The language consists of 50 keywords, but the Java API has thousands of classes with tens of thousands of methods you can use in your programs.
Despite this, developers aren’t expected to learn all of the Java API, and the majority of them are only experienced and fluent with a small portion of it.
java为什么这么流行,最大的优势是平台的独立行;
参考文档