Comparing Java and .Net

Harsh Gupta - Tech Writer
When we talk about language, it could be English, French, Japanese or any other languages. But, I am not discussing learning these languages. I am going to discuss learning a computer language. There are so many programming languages available in the market and it becomes difficult for anyone to decide which language to choose. Presently, two languages: Java and .Net have captured 90% of the market. Both, having 50-50 share in the market. If we talk about .Net language, this is preferred by most of the individuals. The only reason for choosing .Net is its usability and simplicity in learning. People say that you can easily learn .Net without having much knowledge because .Net involves complete drag and drop. In other words, you don't have to write any code, the code is predefined for common defined functions and you just need to press a button and code will be written by itself.

Now, if we talk about Java, it is completely different from .Net. In Java you have to write code for everything you do. Even if you have to draw a line then you need to write a code for it. There is no drag and drop work as compared to .Net. The best part about Java is its portability and platform independence.

Let us compare the two languages briefly.

1. .Net doesn't involve code writing for carrying out a simple task, whereas, Java requires you to write code, if you want to draw a line, or print "Hello" on the screen.

2. Java is platform independent, i.e. the Java code can be run on any operating system or any computer, whereas, .Net is platform dependent and is OS specific.

3. Java is a secure language and it is not possible to deploy viruses in a Java program, whereas, the security of .Net can be easily compromised.

4. Java teaches in depth knowledge about how things work inside a program or how can you achieve maximum efficiency; whereas, .Net is concerned only with placing objects in a program, it is not concerned with the efficiency of a program.

Although, both Java and .Net are object oriented programming language, but .Net doesn't take into account the concepts of objects. It is only concerned with how to make things easier and better for a programmer so that he or she can easily learn this language. The main problem with .Net is that if a new version of this language arrives then the older version becomes somewhat useless, as a result of which programmers avoid learning the new version. In Java, this is not the case, with new version the older code can still be run, however, a warning may be given for functions that have been modified and a new improved function is available for the same.

The above differences are few of the major points of difference between Java and .Net. If you are really interested in learning a language, then you have to decide which language to choose. You can also explore other languages available in the market.

Published by Harsh Gupta - Tech Writer

I am a part time freelancer and writing is my hobby Some of my websites: http://www.GenericArticles.com http://www.JailBreakingiPhone.com  View profile

  • Now, if we talk about Java, it is completely different from .Net.
  • Net doesn't take into account the concepts of objects.
In Java you have to write code for everything you do. Even if you have to draw a line then you need to write a code for it. There is no drag and drop work as compared to .Net. The best part about Java is its portability and platform independence

To comment, please sign in to your Yahoo! account, or sign up for a new account.