JAVA & .NET which is the best

Categories: Java // Tags: .
Email this to someonePrint this pageShare on Google+0Share on Facebook0Tweet about this on TwitterShare on LinkedIn0Share on Reddit0Pin on Pinterest0Share on StumbleUpon0

Which is the best JAVA or.NET

To know that which is the best JAVA or .NET following pros of both technology will help you.

Pros for Java:

  1. Java EE has better OR-support than .NET. JPA (Java Persistence API), Hibernate etc. .NET comes with Entity Framework, but it isn’t as lean as JPA. In .NET land there are some ports from Java available like e.g. NHibernate. .NET seems to more rely on stored procedures, whereby in Java we prefer (sometimes are obsessed) to keep everything in domain objects outside the DB.
  2. Build systems and CI (Continuous integration) tools in Java are more advanced. Hudson + Maven / ANT (Ant is a software tool for automating software build processes) is a really nice and lean solution. On .Net side you can use NAnt(automating software build processes for .NET) or a proprietary MS tool.
  3. Community: Java community rocks – in .NET you have to rely on MSDN. However – this can be considered as advantage and disadvantage as well. You will (always) find an answer for your question for free.
  4. Java is the most popular language (http://www.tiobe.com/tiobe_index?page=index).
  5. Java IDEs: If you are thinking about .NET vs. Java EE you have already allocated some budget for tooling (otherwise the choice would be obvious). In that case you should look at IntelliJ first. It is the best, commercial IDE. If you are looking for free IDEs, start with NetBeans (best out-of-the-box experience) and Eclipse (the most popular one). Java tool ecosystem is remarkable.
  6. Integration: Java integration story is excellent. You get connectors for SAP, AS400, files etc. for free. ESBs, LDAP servers are free.
  7. Framework / Libraries: If you need a specific library – you will find everything in Java. Before you are going to write a single line of code you should do some research first.
  8. Strategic consideration: with Java EE you are truly vendor-neutral. This is very handy in the price-negotiation phase. You can even go into production without any costs (subscriptions, licenses etc). Java EE apps are very portable. Java EE is not even dependent on Sun – it was developed by all major vendors.
  9. Stability: Java language is stable for ages. There are no breaking changes. Java EE 5 and 6 platforms is backward compatible as well. So you can deploy your legacy J2EE 1.X app to a Java EE environment and smooth-migrate it (if you like to).
  10. Best practices: Java EE / J2EE are about 10 years on the market. There are many applications out there. The most mistakes are already made – the best practices / patterns are very mature.
  11. In most of the .NET projects you will find opensource extensions, as well as, commercial .NET tools. Such a mixture can be very “interesting” (regarding support issues)
  12. Operating System: you can choose whatever operating system you want to for production and development.
  13. Opensource: 80% of Java applications in production are built on opensource tools. This is your ultimate insurance.

Pros for .NET:

  1. You get everything from one vendor.
  2. C# develops very fast. It has nicer features, than Java. C# shines in the DSL area. LINQ is very nice for database (and tree-like) queries (however you should look at Scala and Groovy if you need similar features).
  3. You don’t have to search for a given solution. The choice is clear. It can save you a considerable amount of time.
  4. You will find most of the tools at MSDN – there is no need to evaluate tools and IDEs in advance.
  5. Visual Studio .NET is a very good environment with very good DB and team extensions. With a commercial plugin (like e.g. Resharper), it gets a good, as IntelliJ.
  6. The UI best practices are more consistent, than in Java. ASP.NET MVC is e.g. the way to go in .NET. In Java EE you will have to choose between JSF, Wicket, GWT, Struts 2….
  7. The language integration in .NET is seamless. You can easily call methods from C# to VB.NET. In Java it is hard to call Scala functions from Groovy.
  8. SharePoint, Exchange and Office Products are very well integrated with .NET. You can access them with Java, but will need third-party libraries.
  9. (CI)Continuous Integration comes already with Visual Studio Team System.

 

Email this to someonePrint this pageShare on Google+0Share on Facebook0Tweet about this on TwitterShare on LinkedIn0Share on Reddit0Pin on Pinterest0Share on StumbleUpon0

About Team

Browse Archived Articles by Team