About Java and .NET, continuous update

xiaoxiao2021-03-06  211

Platform comparison (do not speak cross-platform, I am learning .NET, no test platform related nature) Java platform contains: JVM, Java language and Java runtime .NET platform contains: CLR, implement language and CFL. Java can only be implemented in a language, but .NET can be implemented in different languages. But .NET uses the conditions for different language implementations that these languages ​​(if cross-calls need to be called), they need to be limited to the minimum CLR subset (CLS), which limits a lot of functions. Moreover, in order to take care of VB.NET, the case in the CLS is not sensitive (in the native language or sensitive). The Java program runs with the Java virtual machine, and .NET programs use the embedded operating system process implementation. Java virtual machines are unlikely to operate because of cross-platform relationships, but .net can be used because it is a personal. The code generated when .NET is executed is a local code, but when Java executes the intermediate code (JVM specification), the conversion between the Java virtual machine is executed between the intermediate code and the local code, this is the Java speed slow a little. Both .NET and Java support "on-demand call", which is to analyze the reference to the component when you use a type (component) and load it into the virtual machine. Java's reference is a reference to generate a reference table, similar to VTABLE, so that the "intermediate code" can be found directly using this vtable; .net directly generates the local code of the type, and modify the entrance of the PE file points to this "local Code "(it seems slowly). Java puts forward a lot of relevant deployments, all related to JAR files, so only one file is required when deploying (ideal), its resources and class files can be packaged together. What's more, the configuration information of its Web Application can also be packaged together. .NET proposes a concept of an assembly, the same is the same, but its version is controlled very strict - it seems that M $ is depressed by Dell Hell - but its file is not in a file package. (This part is not deeply refined) to be renewed ............

转载请注明原文地址:https://www.9cbs.com/read-128733.html

New Post(0)