Although these two languages are not the longest to use and generally use C ++, I still have some knowledge about them. After all, these two languages have inherent advantages in network development methods. In terms of website development, JSP and ASP. NET are the language basics respectively. These two languages are derived from both C ++ and have a large number of identical or similar mechanisms. I spoke about the two languages based on some of my application experiences.
1. Language Definition
This is also the reason for enterprise background hype. The two languages constantly propose new concepts, internal classes, clones, interfaces, proxies, etc. Take a closer look and think about it, these have already existed before, but they appear in a new form as soon as they are encapsulated. However, such encapsulation does greatly increase the development speed for developers. However, these things seem to have been learned by you and I have learned from you, and encapsulation is also based on object-oriented ideas. However, java advocates this point more in use, C # is more advocating the adoption of an integrated development environment. In fact, I personally think that object-oriented and process-oriented have their own advantages and disadvantages.
2. web Development
Because these two languages are mainly used in web development, especially those that require high-speed development of web development and C ++ have incomparable advantages over them. To put it bluntly, each language has its own specific development object and application environment. However, it seems that Java and C # do overlap. The intermediate code interpretation mechanism is also used. Whether it is Microsoft's intermediate language framework or sun's virtual machine, it is actually an interpretation mechanism. By the way, it is quite different. Jsp is more transparent to programmers in implementation. Using ANT for system compilation should be a good idea, the serler mechanism in the background tells you what programmers should understand. In a high user experience environment, Microsoft treats many people as dummies, but this is also the reason for Microsoft's success. In particular, 2005 of development frameworks are completely dumbfounded. In java, object-oriented code is handed over to programmers, while in Microsoft, object-oriented code is provided to programmers (encapsulation, you do not know anything ).
3. GUI development
Specifically, java is commendable in terms of its event response mechanism. I should say that what I like most is QT's slot and signal mechanism, followed by java's event response mechanism ,. net proxy mechanism has been greatly improved, after all, windows is Microsoft. Java divides the layout into several details. Maybe this is the reason for cross-platform development, but it is not very convenient to start with, but it seems quite convenient to use NETBEAN for development. C # has inherent advantages in desktop development. Generally, it runs faster than java.
4. runtime vs vm
C # is based on runtime, and java is based on virtual machines. That is to say, C # runs on a machine language interface, while java generates intermediate code, which is interpreted and run by virtual machines. C # provides many runtime mechanisms. It is also an interpretation mechanism. Java is more advantageous than C # in cross-platform portability. java requires virtual machines on different platforms, although C # supports MONO across platforms, it only supports source code-level cross-platform, and different platforms depend on their specific graphics libraries in terms of graphics Gui.
I have a limited understanding of the two languages, but I have made a comparison between them in the past two days. Finally, I decided to abandon C # in network development and change to Java.