.Net or Java?

Ricky White
Ricky White used Ask the Experts™
on
What are the scenarios in which a project should preferably be made in Java as opposed to .Net?
In other words are there any limitations in .Net in terms of performance, Functionality, etc that is not an issue in Java?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
kaufmedGlanced up at my screen and thought I had coded the Matrix...  Turns out, I just fell asleep on the keyboard.
Most Valuable Expert 2011
Top Expert 2015

Commented:
In my estimation you would get better performance out of .NET on a Windows box since the guys who put out Windows are the same guys who put out .NET (i.e. MS). I doubt there is anything that Java can do over .NET in terms of functionality. Java can be more easily ported to other environments I believe, but you can also write .NET code to run on a *nix box if Mono is installed on it.
performance is not a platform problem - java and .net are both compiled to an intermediate language and compiled "just in time". poor performance almost always comes down to implementation/design of the app rather than the platform.

you can do EVERYTHING in .net that you can do in java and vice versa.

what you get with java that you don't get with .net is CHOICE and FREEDOM.

JAVA:
- you are not locked in to any platform (*nix, mac, windows) during development
- your app should run on any platform (it's not hard to do it properly so this is a reality)
- you chose your IDE (netbeans, eclipse, intellij)
- you don't have to pay licence fees for the platform, the dev tools, the dev environment
- MASSIVE choice of extremely mature open source libraries to do anything you want

.
Chinmay PatelChief Technology Ninja
Distinguished Expert 2018
Commented:
Hmmmm...
For .Net

- World's BEST IDE if I may say
- Of late[after Oracle took over] Java's progress has been questionable
- Excellent Dev tools and Add ons for accelerated development
- Excellent tech support which is cheaper than Java's tech support[YMMV]
- Regular updates in the framework based on customer feedback
- It is MS :)

Regards,
Chinnmay.
Commented:
In fact your is a very common problem all around the world almost in every first development project of a company may be some more :) I personally agree with both basicinstinct and  Chinmay_Patel, both are right. I believe that selection should be based on your teams expertise. Java and .Net are good enough for every project and you can do everything with both, there are some pros and cons in both but at the end one team may be more successful with one another depending on their experience. But I think a very important selection criteria is the nature of application you will develop, if it will be massive multiuser internet platform I personally recommend java over .net due to the application server weakness of .net applications. IIS may be a real hassle in a large-scale project. There are ways of getting rid of problems and make it run in a smooth way in large scale but my choice would be java to have different powerfull application server alternatives if you tend to develop a large scale application, .net can be more handy in small & medium scla but dont forget to asses the teams experience in the 1st rank.

Author

Commented:
Thank you all!

Are there any licensing fees associated with Java(IDE etc) or is it completely free?
I know Visual Studio IDE is not free.
kaufmedGlanced up at my screen and thought I had coded the Matrix...  Turns out, I just fell asleep on the keyboard.
Most Valuable Expert 2011
Top Expert 2015

Commented:
I know Visual Studio IDE is not free.
The Express editions are  = )
kaufmedGlanced up at my screen and thought I had coded the Matrix...  Turns out, I just fell asleep on the keyboard.
Most Valuable Expert 2011
Top Expert 2015

Commented:
P.S.

There is also SharpDevelop.

Commented:
There is not Java license fee, you can develop in Java platform completely free with lots of alternative IDE, library, components etc. As for the visual studio, express edition is free and all other versions are subject to license fee by Microsoft
yes java is 100% free and so are the big java IDEs (except intellij)

Eclipse (most popular): free
Netbeans (very popular and better to start with): free

with java you can develop on a linux machine so you don't even need to buy windows licences for your development. LOTS of people actually do this.

note that when you go back and read the arguments above:
- the arguments in favor of .NET are mostly personal preference / assumptions
- the arguments I have given for java are plain facts.
Chinmay PatelChief Technology Ninja
Distinguished Expert 2018

Commented:
I would recommend using a quick search about Oracle and how it is affecting Java's future development should wake up a certain individual from the sweet dream world s/he has developed as a side effect of chronic myopia in terms of technology and software development in general.

As others have mentioned, it is more of a choice than the platform limitation, with right kind of a skill set; platform is nothing but a medium. 10 years back or so I made a choice, I moved to C# as I found it more aligned to the work I was doing and VB6 was not the right way to go and Java was not an option. Even if it were, 10 years back, given a choice of IDEs I would have chosen Visual Studio over any Java IDE ... 1000 times over. And I never regret that decision. It was worth it for many other factors[Awesome development scope:) - which is now stabilized] but yes I would say IDE matters a lot to me.

Development/Solution Design/Architecture are the areas where I spend my most of the time and I need my IDE to be sharp, feature rich, extensible, elegant and user friendly. I know it is not free, but it is worth every penny.
@Chinmay_Patel

 
should wake up a certain individual from the sweet dream world s/he has developed as a side effect of chronic myopia in terms of technology and software development in general


 no need for personal attacks, we are discussing a technology platform.
kaufmedGlanced up at my screen and thought I had coded the Matrix...  Turns out, I just fell asleep on the keyboard.
Most Valuable Expert 2011
Top Expert 2015
Commented:
Since we are "discussing"  ; )

JAVA:
- you are not locked in to any platform (*nix, mac, windows) during development
- your app should run on any platform (it's not hard to do it properly so this is a reality)
- you chose your IDE (netbeans, eclipse, intellij)
- you don't have to pay licence fees for the platform, the dev tools, the dev environment
- MASSIVE choice of extremely mature open source libraries to do anything you want
.NET:
- I already mentioned the Mono Project. There is also MonoTouch.
- See previous.
- I already mentioned the Express editions and SharpDevelop.
- While there are free versions of *nix, there are also non-free versions as well. Yes you pay for Windows, but as I already mentioned you don't have to pay for the IDE. Admittedly, if you don't you won't have as many additional features. However, I almost always see complaints as to having too many features in and IDE (Eclipse included).
- There is a large number of open source .NET projects (www.codeplex.com) as well. Java has quite a few years out in the wild on .NET, so this isn't unexpected.
Chinmay PatelChief Technology Ninja
Distinguished Expert 2018

Commented:
@basicinstinct

- the arguments in favor of .NET are mostly personal preference / assumptions
- the arguments I have given for java are plain facts.

It is interesting not many like the taste of their own medicine.
And it wasn't personal it was just a reaction.

Author

Commented:
Thanks All!
I feel the discussion was very productive and has helped me understand about both Java and .Net. I hope it helps others too as much as it has helped me.

Author

Commented:
Since everyone has contributed something useful its really hard for me to choose the best answer so will split the points.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial