Article Title: differences between JDK and JDK in Linux. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
In Linux, I wrote a program with jdk 1.6. After compilation and packaging, everything went normal. In Windows, jdk 1.6 was used, and what is the incompatible compilation type, invalid magic number.
In Linux, we had to re-compile jdk 1.4.2 with the classic version, and we found two differences: 1. in 1.4.2, assert is keyword and cannot be used as assert (boolean expression) :( String), but can be used in 1.6.
During compilation under 1.4.2, the following error message is displayed: warning: as of release 1.4, assert is a keyword, and may not be used as an identifier, it is a semicolon error (in fact, the compiler treats assert as an identifier to handle the reported error ).
2. In 1.4.2, the override clone () method cannot be used as follows:
Public NewClass clone (){
...
Return NewClass;
}
This is allowed and convenient in 1.6.
Only 1.4.2
Public Object clone (){
...
Return ...;
}
So there is more than N forced type conversion.