What is the difference between java and .Net?

Answer Posted / rohith

Java is developed by Sun Microsystems where as .Net is by Microsoft Corporation.
Both of them are capable of producing high end applications.
Java is a light weight language and can be run on almost all the OS. Light weight doesn't means that it have less capability then .Net rather it means that it do not trigger the computer with lots of load and Hard Disk space. Whereas .Net needs a very heavy framework to be installed which have higher Hardware requirements too compared to Java.
C# is the most popular language of .Net and is used to create any kind of programming like Web Application, WIndows Application and up to an extenct games programming too.
The main reason why many programmers dominate .Net is because maximum things that you need to achieve manually in Java, are already provided by .Net framework automatically.
The .Net garbage collector does not wipe away your objects as and when it likes, but will do the garbage collection in more efficient manner than Java. Basically in Java it has been upto the programmer to clean the memory manually whereas this task is moreover automated in .Net.
Like .Net garbage collector runs at a certain interval and see is there is any memory occupied by any object whose parent is now finished processing (for eg. you closed an application), in this case the garbage collector automatically removes the reference of that object and free up the memory, whereas in Java you need to confirm it that all the objects are destroyed before application quits.
On the other hand Java has a major advantage that it can be run on any OS which is able to install JVM. This is a major disadvantage with .Net.
Also, for .Net a standard development IDE is available that is Microsoft Visual Studio. This tool comparises of all the things you require for your development purpose (Each and every thing you may think need of are at single place).
Whereas, for Java no such standard tool is available. Although, many third party IDEs are available.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the importance of finally block in java?

575


Can java inner class be static?

578


In how many ways we can do exception handling in java?

595


How can we make a class virtual?

657


How many bytes is a char in java?

550






What is size () in java?

564


What are different types of control structures?

500


What is java instanceof operator?

588


Can we access instance variables within static methods ?

586


Can we sort hashset in java?

656


What is an image buffer?

551


What is the basic concept of java?

552


How to set the permissions to a file in java?

550


What is communist flag?

584


What is identifier in java?

572