You are on page 1of 13

Java vs.

Java vs .Net
There are many controversies as regards the difference between Dot Net and Java. There are basically two environments for developing applications for the World Wide Web as it remains today. They are called Java Platform and .NET platform.

If you devote a considerable amount of time exploring the environments then you can easily find out that .NET is far more efficient and perfect than any others. .NET and Java are actually incomparable guided by the fact that Java is a programming language where as .NET is a framework or a platform of presently 43 programming languages (Microsoft latest news .Net support around 40 languages).

Java vs .Net
Java is generally used cross platform because of Java Virtual Machine (JVM). JVM helps in the translation of the code to bytecodes and then complies it to machine code according to the operating system. In the same way, now, .Net has developed Common Language Runtime (CLR) engine that converts the program code into Microsoft Intermediate Language (MSIL) and then just in time the MSIL is translated to the native code. It has in built data types in classes known as Common Type System (CTS) that mechanically understands the types of other languages and implements simultaneously.

Java vs .Net
Therefore, when .Net supports numerous programming Language, Java, alternatively, we can say that it is focused on only one programming language that supports multiple environments.

Java vs .Net
Comparison:
1).Java and .Net Both are object oriented programming language but Java is a platform independent language while .Net is not a platform independent. [GI]

2).Java Support one language on the other hand .NET is language independent i.e. applications written in any programming language supported by .NET framework can be converted to any other language supported by the framework. Some Languages supported are VB.NET C#.NET J#.NET etc).

Java vs .Net
3).dot net provide more user friendliness when designing the forms for example in .net we drag and drop controls into form which is not at all mind teasing process. Developer can concentrate on the logic or other security issues. Where as in java code for creating a simple control like button also takes a lot of programming for a developer. 4).Java supports connected architecture and .Net supports disconnected Architecture. [GI] 5).Java is sun Microsystems Product whereas .Net is Microsoft Product .

Java vs .Net
6).According to Sun Java is renowned as Write once run anywhere. While .net has no such scene. But its not completely true to say Write once run anywhere but one aspect is that most of the applications written today focus on one platform only. Similarly to assure its multiple support much time needed to debug it on all platforms. So its not Write once run anywhere but its Write once and Debug everywhere. While for .net it is "learn once, work anywhere. 7).Net due to disconnected data access through ADO. Net has high level of performance against Java JDBC which requires multiple round trips to data base.

Java vs .Net
Conclusion:
.Net and Java are said to be the two extensively used development environment to construct web applications. It is very hard to predict as to who will appear the winner, but the clear sign is there that the large enterprises who have been using Java for a prolonged period of time or the enterprises who use different platforms, will certainly continue their relationship with Java. As far as .Net is related, the enterprises who have Windows platform and who is seeking faster development time will go for .Net.

General Information
.NET platform .NET applications are built by developing in any of the .NET languages such as C#, VB, or C++, which is then compiled into the CIL (Common intermediate language) bytecode. Next, the CIL is converted into assembly which can then be executed on any Windows machine that is Window Plateform.

General Information
Java platform Java applications are built by developing in Java only, which is then compiled into Java byte-code. The intermediate byte-code is then converted to assembly using the JVM (Java Virtual Machine). Unlike the .NET platform, however, the assembly code created from the JVM can run on any platform, including Windows, Unix, Solaris, or Mac OS.

General Information
Connected Data Access: when read data from a database by using a sqlDataReader object, an open connection must be maintained between application and the database. SqlDataReader is created implicitly and the rowset (data) is retrieved one row at a time in succession and sent to the DataSet (dataView).

General Information
Disconnected Data Access: When use dataAdapter, DataTable, DataSet, DataView objects, you don't need keep a connection to the database open. These objects are associated with a SqlConnection Object and to fill dataset it opens SqlConnection object (if not already open) for the time of reading or writing data to the databases as the work is complete

Connection closes.

You might also like