- Introduction
- .NET Framework Architecture (CLR)
- Java Architecture (JVM)
- NET
- J# Versus Java, Example by Example
- Advantages and Disadvantages
- Conclusion
- Acknowledgments
Advantages and Disadvantages
The following table summarizes the differences between Java under the Java framework and the .NET Framework.
Feature |
Java Framework |
.NET Framework |
Code reusability |
No true cross-language code reusability |
Advocates true code reusability |
Support for web services |
Late starter to this area, but it does support this feature |
Strong built-in support for web services |
Platform independence |
Great support |
Generates platform-neutral code |
Standards |
Great support for XML and SOAP |
Great built-in support for XML and SOAP |
J# offers the following features:
Generates platform-neutral code in the form of MSIL
Support for class libraries of VJ++, JDK 1.1.4
Interoperates with COM
jbimp.exe converts the JBC (Java bytecode) to MSIL
Brings cross-language capabilities into Java language
Simultaneously supports both JDK 1.1.4 and BCL (Base Class Library) of .NET Framework
Accesses platform-native resources
Generates XML documentation
Writes ASP.NET applications
Writes web services
Retains the majority of Java-like syntax and features
These are J#'s disadvantages:
Programs can't run under the umbrella of JVM
No support for the Java Native Interface or Remote Method Invocation
No operator overloading
Minimal support to convert binaries making J/Direct calls
Automatic generation of proxy classes for web services
Cannot call WebService methods using Enum types
Cannot add reference to .exe files