Home TechnologyProgrammingJava Subscribe to RSS

What Is The Difference Between .net And Java?

Answer Question

6 Answers - Sort by: Date | Rating

    The biggest difference between Java and .NET is the basic philosophy behind the languages.  Java is a programming language designed to be run on many different platforms, and so uses a common language which has to be compiled and run on different platforms (eg. windows, mac and linux).    Microsoft, with their offering of .NET, takes on a different approach, by allowing you to program in any language you choose, but has compilers for many different languages that generates a platform specific code (i.e. Microsoft or Windows).  Therefore, Java can be used to write programs for many different operating systems, and .NET can be used to make any programming language into a Windows program.  This is all based on the original design goals of the programming language, and has both advantages and disadvantages over each other.  For example, .NET would be good for integrating legacy code from different languages into a working program, when you don't want to re-write each piece of code into the same programming language.  Both .NET and Java are otherwise object-oriented programming languages, with their obvious syntax differences.
    0 0

    S4074433 

    answered 3 years ago

      Difference between java and .net
      0 0
      Guest

      Guest 

      answered 8 months ago

        Difference between java and .net
        0 0
        Guest

        Guest 

        answered 8 months ago

        Architecture wise the .NET byte codes gets transformed into a intermediate
        language and cached as native code before execution. All most Java2
        programming is J2ME specific, but I don't think the Java2 VM Sun provides
        for Windows does, one of our Java2 programmers told me that IBM has a
        Just-In-Time VM for Win32 that does do this, but it's commerical software
        and cost $$$ to license. The result of this is that .NET apps run faster
        than Java2 apps on Windows with the default Java2 VM provided by Sun.

        Also, Microsoft intermediate language is opened for language developers to
        build on (it's actually an Assembly Langauge that you can write in if you'd
        like), so C#, VB.NET, COBOL.NET, J#, etc.. All are compiled into MIL
        (Microsoft Intermediate Language) if you wanted to create Pearl.NET you
        could.

        The .NET VM (aka Common Language Runtime) was built primarly with the Win32
        API in mind and is closely knit to the Windows platform.

        Getting past this the .NET class libraries provide a bit more functionality
        than the class libraries provided by Sun (not much, just a bit though). This
        is most just utility items (e.g. In .NET if you want to convert from one
        data type to another their's a static Convert class that works like a magic
        box) there are things missing in .NET though (no Vector, but you can make
        one pretty easy)

        The primary advantage of .NET (comparing the C# language here to Java2) is
        that .NET has Visual Studio.NET (so far I've seen no other IDE that can
        match VS.NET, yes I've tried WebSphere, Eclipse, Borland, Sun One, they all
        fall short in some areas). The other advantage is ASP.NET which has stolen
        the best concepts of JSP, PHP, ColdFusion, and borrowed from classic ASP.
        ASP.NET is killer for web apps. (Although the Sun One studio for web
        development is good enough that I probably wouldn't switch to .NET just for
        ASP.NET at this point)

        Java's primary advantage is that you have your choice of third-party tools
        (third-party IDE, third-party application server, third-party web server,
        etc...) it doesn't bind you to a specific platform and it runs everywhere.

        If you're doing Windows development use C# and .NET, if you're app has a
        chance to benefit from running on some other platform use J2EE.
        0 0
        Guest

        Guest 

        answered 7 months ago

        Difference between Java & .net
        0 0

        Guest 

        answered 4 weeks ago

          .net is the domain whereas Java is one of the many computer languages.
          0 1

          Ratnakumar 

          answered 3 years ago

          Simply we can say that .net is framework where we can use different types of language, whereas java is a programming language.
          Report
          Jerry11

          Jerry11

          commented 1 year ago

          Architecture wise the .NET byte codes gets transformed into a intermediate
          language and cached as native code before execution. All most Java2
          programming is J2ME specific, but I don't think the Java2 VM Sun provides
          for Windows does, one of our Java2 programmers told me that IBM has a
          Just-In-Time VM for Win32 that does do this, but it's commerical software
          and cost $$$ to license. The result of this is that .NET apps run faster
          than Java2 apps on Windows with the default Java2 VM provided by S
          Report
          Saurabht

          Saurabht

          commented 2 months ago

          More

             
             

            Ask a Question via Twitter

            Send a question to @askblurtit and we will publish it online and send you a reply everytime you receive an answer.

            Blurtit Store

            Get T-shirts, hoodies, caps and more at the Blurtit store

            Blurtit International