Once you hear how to write it, it will damage Java's cross-platform nature, and everyone will be nervous and regard it as a storm. JNI technology and something that involves platform relevance seem to be ignored. Is cross-platform really the only reason why Java exists? Apparently not!
Java has many advantages. Java, as a model of the fourth generation language, has many advantages. First of all, from the programmer's point of view, there are a lot of IDE tools during Java programming, and netbeans, a leader in the desktop field,
Fully-developed eclipse, as well as commercial JBuilder, intllij idea, which automatically completes the code function and can check errors when writing code. In terms of language, the packet mechanism, garbage collection mechanism, and dynamic loading mechanism are all very advanced and very efficient. C #, as the ultimate version of C ++, is also a lot of imitation of Java design. At the same time, the concept of design pattern has been strengthened with the birth of Java. Java language, compiler and Its Class Library are themselves a model of design pattern. This is a method that emphasizes architecture design, so that the work can be more scalable and maintainability.
Therefore, in addition to the inherent nature of cross-platform Java, Java also has many other advantages. Powerful class libraries greatly improve the development efficiency. Therefore, we can use Java to write platform-related programs without overemphasizing platform independence. Java provides Java interfaces for Calling C/C ++. At the same time, we can also use C and C ++ to operate JVM. DLL to call Java class libraries. This is completely feasible (when you are required to be familiar with many functions in JNI. h ). Therefore, Java is definitely not an isolated island and cannot be an isolated island because of platform independence. Code reuse is one of the goals that programmers need most, while blindly pursuing platform independence sometimes becomes an obstacle.
In addition, the reuse of user experience is also the key to the success of a software. in Linux, why does the graphic interface have been well developed? Many Windows users are still reluctant to switch to such a powerful, especially free system? Obviously, users' habits are important. Therefore, just like the paradox of internationalization and localization, platformization is sometimes quite advantageous. We like to integrate software with the system to make full use of the performance of the user system. Obviously, many vendors do this. For example, though software such as netbeans and JBuilder were written in Java, different versions were released for different platforms. I guess that's why.
According to the author of the core Java technology:
Java code does not have good portability, but has the following features.
Java is easier to compile code without errors than C and C ++.
Java is easier to compile multi-threaded code than other languages.
Java can easily write network code
I also want to say a few words: Everyone knows the cross-platform features of Java, but it should be just a propaganda means of sun. We have no need to limit it to cross-platform circles.
Of course, this is purely a personal idea. When you are working on a project, you should make a good measurement.
----------------------
Welcome to the launch of the new website Website Transaction CenterYou can purchase or sell your website here.
Website information publishing centerVarious transaction information is released here. At the same time
Free use of some software (with source code ).
Website Blog systemYou can register your own blog here. An unlimited number of blogs under one account
Contact info:
Support@websiteempire.cn
QQ: 563828566
MSN: zhuhailin123@hotmail.com