Comparison of Java1.5 and .NET2.0

xiaoxiao2021-03-06  74

Sometimes waiting is a kind of happiness, just

Java 1.5 (

Commercial version number is

5.0)

with

.NET 2.0 (

The internal version number is

1.2)

Swing. for

Java

community,

1.5 RC1

Waiting is like the world, and finally give this centering pill when everyone will lose resistance;

.NET

The community is a kind of joy, it is also a concern, after all, relatively stable.

.NET 1.1

Version yet

Java

The mature gesture in the community, but should consider whether it is moving

2.0

New world.

I don't know if it is the illusion of commercial propaganda. Many people compare these two heavyweight products are more concerned about the comparison of Java language and C #, from a sense of meaning. Net is not fair enough. It is also not fair to Java.

When discussing Java, we easily mix the Java language and Java platforms to a trip, and more than the .NET platform comparison, compare the Java platform and C #, or compared to the Java language and .NET platform, This is not justified in my personal consciousness.

After years of development, Java has expanded from a single language and its runtime environment, and in an absolute leading position in the field of enterprise applications, J2EE has become a standard technology architecture in fact large enterprise applications. In the field of mobile development, because of its cross-platform advantages, the development of various Java compatible equipment has also become a very important force.

.NET is based on the beginning of the platform, relative to Java advocated "one written, everywhere", .NET more advocates "a platform, multiple languages", because the platform is unified, therefore compatibility in various languages ​​and Hybrid development is better than Java, and therefore some MS supporters laugh at Java is "once written, debug everywhere".

Throughout the innovation of these two platforms is mainly reflected in the following two aspects:

Java: This is from the first real meaning of the first true meaning. For the language implementation of the big knife, Sun has been placed more energy in the definition of the expansion of class libraries, such as JDBC. Improved, JMS, JNDI, EJB, etc. Very important normative is to gradually mature during the development of these years. Russia and in terms of language, Java Class file has not changed since Java1.1 in 1997, and there is not much change in language support, so "Book" like "Thinking in Java" from A publishing is now no substantial change now, more is the author's correction for some views. In terms of class library, after SUN and open source communities, Java has made Java into a giant platform, except for JDK's own huge library, SourceForge can find some very complete application framework, such as Hibernate Ant, Spring is the model. And this update means that Java will become more "fun" at the language level, which is more suitable for business-oriented applications, and no longer need to rely on a daunting library to achieve perhaps not complex applications. . The result of "light quantification" of the language is to bring improvement in development, while relying on the powerful resources currently have currently have in the Java world. I want to be a new era for Java, from 1.5, Java is more light, nor Yangchun Snow High is on, through core type data sharing, through the support of annotation, Java has gradually entered the desktop application market through multi-threaded improvements.

.NET: One point can be affirmed, the innovation of C # language is definitely not all .NET 2.0 new features, according to Microsoft's consistent style, from language to class library to the development tool full line support is all. Net 2.0, from this From a perspective, the number of Visual Studio 2005 Beta1, which announced the previous days, highlights Microsoft's "Wolf Ambition", except for C # general, anonymous methods, iterative procedures, and local classes, no VB.NET Exception, greatly simplified access to system resources via My namespace. Alternatively, the MANAGED C has been returned. In addition to retaining the traditional C function, the writing of the hosting application can finally use the pleasing code to complete, not the "__gc" keyword of the C programmer . The improvement in the class library is to truly let the developers are ecstatic, ASP.NET 2.0 has joined the framework for the development of the portal - WebPart support, and also added support for users, such as Skin, Password Recover, and more. There is always a bad thing, this world does not need to "solve the defeat", the business rules do not allow the emergence of "solitary and restrictions", because it will break the balance of competition, while java and .net The disputes between the two platforms have just begun, while the result is conducive to the entire software world. Developed to the present, two platforms have been approaching the same in the technical architecture. If you want to compare a probably, then I want to be more advanced than Java because of the language level because of C # or VB.NET. The class library framework is also because it is late, it is still unable to compete in large applications and Java. These two mutually contest platforms work together in mutual learning, who is the beneficiary? I think it is still a major user.

J2SE 5.0 and .NET 2.0 section technical reference

Java .NET indicates that generics in generic 3.5 4.5 .NET maintains a very good effect, almost all things, but J2se 5.0 uses incomplete "wiping" generics, many features cannot be complete achieve. Metadata Metadata 4 4.5 Annotation and Attribute comparison can be seen in the above, .NET still has a slight advantage in this regard. Virtual Machine VM 4.5 4 Virtual Machine, J2SE 5.0 made a considerable improvement, and the original virtual machine has been largely improved, and this part of Java accounts for the upper air. Waste collection GC 4 4 two platforms are not very different, the efficiency is also very close, just .NET has some support for the Windows platform, so there is a small difference in both. The grammar mechanism 4.5 4 grammar mechanisms, there is no room for more comparison, but Java is upgraded in this large-scale version, or the grammar mechanism has made a relatively active modification. Multi-threaded Treading 4.5 3.5 In J2SE 5.0, there are many basic work in multi-threaded, especially in the class library, and the improvement of basic work, plus the advantages of its own system architecture. There is a relatively large advantage on the thread. Class library 4 4.5 This version upgrade, .Net class library has great improvements in many ways, especially the Java, in particular client class libraries, has made greater progress. Portability and openness 5 3 Java portability and openness have always been very excellent. The openness of the program, the convenience of the system transplant, and Java will win. Net is far away. Therefore, in the development of various fields, such as server-side, embedded, enterprise system architecture 5 3.5 this part has always been the most powerful place in Java. Several fields of enterprise-level architectures are all the advantages of Java, how to meet business needs, try to maintain the simple and clear structure, productivity requirements and testability are the focus of enterprise-level development, Java in the new version It is still good. Posted on Oct 2004, October 08, 2004 10:19 AM

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

New Post(0)