The birth of Java: Every design language innovation is to solve the previous language encountered in the unresolved problems, B language led to the birth of C language, C language evolved into the C++,java of the two languages inherit most of the characteristics. Java's initial driving force was to find a language that could be embedded in a variety of electrical devices in an independent platform.
Java has been greatly affected by C + +, but Java is not an enhanced version of C + +, they are very different in practice and theory, Java and C + + are neither upward compatibility nor backward compatible. Java is not used to replace C + +, Java is designed to solve some specific problems, while C + + is to solve other specific problems, the two will coexist for a long time.
The Java language can be used to generate two types of programs: applications and small applications, and his most compelling place is to address the two toughest issues, security and portability of small applications.
The so-called security is that Java provides a firewall between the network application and the computer, which can effectively prevent some malicious programs and viruses, so as to be able to download Java applets safely. Java implements this functionality by restricting Java programs from accessing other parts of the computer in the Java Runtime environment.
Portability refers to source code portability, operating system portability, and CPU portability. Source code portability means that Java programs can run the same results in any CPU, operating system, and Java compiler; CPU portability refers to the fact that the Java compiler produces a target code that targets not a real CPU, but a virtual CPU, the Java Virtual machine JVM; Operating system portability means that Java uses a platform-independent library function to solve the problem that the same set of code programs cannot operate on multiple operating systems at the same time.
The key to solving the top two problems in Java is that the Java compiler's output is not executable code but bytecode.
Learning Diary (a) The Origin of Java