Java Architecture Versus .NET Architecture

Hi,

        There is nice article by narayan about Java/.Net......Bit impressed on it.

.NET Architecture

Java Architecture

Designed to support multiple different programming languages. Currently, 30 languages support the .NET architecture.

Though other languages' code can be converted to run under JVM, they don't acquire true cross-language capabilities.

Compiles the source code to Intermediate Language (IL), which is itself a language.

Compiles the source code to Java bytecode, which by itself is not a language.

CLR implements a contiguous memory allocation algorithm.

JVM implements a noncontiguous memory allocation algorithm.

Compiles the source code twice during the process of converting to native code. Compiling works faster than interpreting.

Compiles and interprets the source code once during the process of converting it to native code.

find more at ....http://www.informit.com/isapi/product_id~{6C5E3ADE-BAAE-40F0-8BC0-0616F007707C}/element_id~{57147C6E-310B-4845-85D4-739D29B6221C}/st~{D06674E4-4033-4F5E-85D4-5D32A6FD7B71}/session_id~{51FC785A-347F-4B99-9766-771A9DD6982F}/content/articlex.asp

and few other chat transcript

A comparison of Virtual Machines: JVM Vs CLR http://www.microsoft.com/india/msdn/chat/transcripts/14.aspx

Microsoft Visual J# .NET: Bringing the Java language to the .NET Framework http://www.microsoft.com/india/msdn/chat/transcripts/79.aspx

Java to .NET – Migration Path                                      http://www.microsoft.com/india/msdn/chat/transcripts/21.aspx

Microsoft Visual J# .NET: Bringing the Java language to the .NET Framework http://www.microsoft.com/india/msdn/chat/transcripts/79.aspx

Benchmark Comparison: .NET vs J2EE         http://www.microsoft.com/india/msdn/chat/transcripts/37.aspx

Enjoy .Net........................................................................................

Ping me if u have any queries on any things

- Suresh, suresh@mvps.org

 

 

 

 

 

3 Comments

  • If this kind of texts are in a 'comparison article' the article is pretty worthless:



    "Java: Compiles the source code to Java bytecode, which by itself is not a language."

    This is not true. .NET compiles to byte code as well, the assemblies you run are not ascii texts interpreted by ilasm. They contain bytecodes which are interpreted by the JIT + CLR. Same with Java. You can dissassemble Java bytecode and see the assembly instructions as well, add assembly and assemble the .class file again.



    So although the bytecodes of.NET have a name, IL, it doesn't mean the java lookalike bytecodes are not a 'language' :)



    This also is somewhat misleading:

    ".NET: Designed to support multiple different programming languages. Currently, 30 languages support the .NET architecture."

    In .NET all languages have to compile to the native IL statements as well, the same with languages on the java VM. In theory you can create a C# and VB.NET compiler for a java VM and run the code. The CLR's inner workings and limitations are pretty close to C#'s aspects.

  • Comparison are too Microsoft sponsored :)

  • Consider the case where you start up a .NET remoting client that registers a server
    type and creates an object on the server.
    i)  If the server process is not already running, at which stage does the
    client program detect that the server is down (initial start-up, registration, or object
    creation)? Why this stage and not earlier or later?

Comments have been disabled for this content.