Java is an object-oriented method that allows you to write cross-platform applications.ProgramThe design language is a Java programming language andJava platform(That is, javase,
Java EE, javame.
JavaProgramming LanguageStyle is very closeC,C ++Language. Java is a pure object-oriented programming language that inherits
C ++ is the core of object-oriented technology. Java discards the pointer (replaced by reference) and operator overloading that are prone to errors in C ++) multiple inheritance (replaced by interfaces) and other features, the garbage collector function is added to reclaim the memory space occupied by objects that are no longer referenced, so that programmers do not have to worry about memory management. In Java SE 1.5, Java introduces generic programming (generic programming) and type-safeEnumerationLanguage features such as variable length parameters and automatic installation/unpacking.
Compared with C ++, Java is a compilation-type language, while C ++ is a compilation-type language with good performance and overall operation. Java is different from general compilation and execution of computer languages and interpretation of computer languages. It first setsSource codeCompiled into a binary bytecode (bytecode), and then relies on virtual machines on different platforms to explain and execute bytecode, thus implementing the cross-platform feature of "one compilation, everywhere execution. However, each compilation and execution requires a certain amount of time, which also reduces Java
Program running efficiency. However, after j2se 1.4.2 was released, Java execution speed was significantly improved.
Java features: simple, object-oriented, distributed, explanatory, robust, secure and system-independent, portable, high-performance, multi-thread, and dynamic language.
Java language execution sequence, first run the Java source file compiled by the compiler. the class file (a platform-independent bytecode file) is interpreted as different machine commands by JVM (different platforms of Java virtual machines have different JVMs ).
JAVA is compiled once, cross-platform execution across different platforms is implemented. class is the same for the same. the class file uses different JVM interpretations in different systems to generate different machine commands! Therefore, Java is a cross-platform language!