Você está na página 1de 7

A comparative study between java & Dot net

From the industry point of view

Introduction
What

.NET? Some say its just the syntax. From .NET,C# uses "using" instead of Java's "import" and so on. They are almost the same, both are pure object oriented, both run on virtual environments both have garbage collector, both ............... They are almost same!

are differences between Java and

Java

is a single language shared by multiple platforms , .NET is a framework for different languages but shared by single platform. .NET is language independent and java language dependent. Java is from Sun, .Net is from Microsoft.

Then, let's go to the real difference which is thinking way yes, the real difference isn't between Java and C# as programming languages and not between Java Runtime Environment (JRE) and .NET framework as platforms. The real difference is between Java developers and .NET developers. Java developers usually think with open source oriented approach but .NET developers usually think in how to sell this code. Java developers usually think with independent way (independent of OS, independent of tools,........) but .NET developers think only on Windows and Visual Studio. they even may not imagine that their code may run on a linux machine with mono.

Java

developers use different tools from different producers (for example, linux from community, Java specification from Sun, JVM from any manufacurer, TomCat from apache, NetBeans from Sun, MySQL from mysql community and more from more producers), but .NET developers always use Windows from Microsoft, C# from Microsoft, .NET framework from Microsoft, IIS from Microsoft, Visual Studio from Microsoft, SQL Server from Microsoft and even office from Microsoft. and no comment on how thinking is limited caused by working with one strategy from one producer!

JAVAa light weight language and can be run on almost Java is


all the OS(it require less hardware) Java you need to confirm it that all the objects are destroyed before application quits. Java has no standard tool is available. Although, many third party IDEs are available 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).Any OS which is able to install JVMJava can be used to write programs for many different operating systems Java interface, a null object reference maps to the VT_NULL VARIANT value Java interface, all failure HRESULTs from the underlying COM interface are reported by throwing a com.ca.openroad.COMException containing that HRESULT value

.NET

.Net needs a very heavy framework to be installed which have higher Hardware requirements too compared to Java .Net garbage collector runs at a certain interval and see is there is any memory occupied by anyobject whose parent is now finished processing (for eg. you closed an application), in this casethe garbage collector automatically removes the reference of that object and free up the memory .Net a standard development IDE is available that is Microsoft Visual Studio .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). .NET can be used to make any programming language into a Windows program.NET COM interoperability layer maps null .NET object references to VT_EMPTY. VT_NULLis mapped to a special object type of class System.DBNull. .NET COM interoperability layer does something similar, using theInteropServices.COMException class. However, it uses that exception class only as a lastresort. If there is already a .NET exception class that reasonably represents the meaning of aparticular HRESULT, the interoperability layer throws that .NET exception instead of a COMException.

Você também pode gostar