Java vs. C#

From now on I’ll be doing much more in Microsoft .NET rather than in Java. Thus, it seems my preparation for SCJP exam will slow down now… Also, I presume there’ll be slightly less about Java on that blog from now on (at least for some time).

I learned about .NET framework and C# programming language at the univesity, but it was a few years ago. Also, I’ve never been involved in a business project that used this framework. So, time to refresh the knowledge of .NET icon smile Java vs. C#

Luckily, it seems there shouldn’t be much difficulties in switching from Java to C#. Of course, those languages differ but still they have a lot in common. This article should be helpful in understanding the differences between Java and C#. It’s well written and the theory is supported with code examples.

After refreshing C# there will be time to re-learn ASP.NET…

4 Responses to “Java vs. C#”


  • Java and C# are quite similar (in fact, Microsoft used Java as the syntax structure for creating C#) but the big difference is that Java is portable while C# is not there yet. If you have plans on porting your work to other operating systems such as Linux, then you may want to look at continuing your work in Java or even looking into Python.

  • C# is “portable” via the mono-project. There problem is that the Microsoft version will always be ahead of Mono but if you are writing at least with C# version 2.0 you should be able to use Mono to port to Linux and the OS/X

  • I want know how is the future of C#, Since i am fresher i am thinking of taking training on C# please let me know.

  • The future of C# is very bright indeed. However the same can be said of Java. The main difference is that ugly truth of lock in to vendor which means once you start with C# everything will be Microsoft for you and I don’t mean just operating system but almost everything else (That may change in the future as we saw in the case of Oracle high support to MS programmers through its ODP.Net).

    The most disturbing fact in C# is that you will always be tied to Microsoft development of their products and ignorance of the need of programmers. In any case C# is very similar to Java and it is powerful and object oriented and it’s GUI is much easier than Swing for beginner and VS IDE is one of the best there are so you will enjoy it very much especially Win Forms even more than WPF since they are still facing problems with terrible fonts issue but nevertheless they are moving toward WPF away from Forms.

    Of course a good programmer will learn both (at least basics and terminology differences) to be more employable and then get stronger in either one according to his company needs not merely to his preferences. That also applies to choosing best tool for given job (if I were RIA developer I would always choose Adobe AIR before MS Silverlight or Sun JavaFX). Right now most of enterprise world is stuck with Java since it had been there earlier and since it gives platform independence but that is not so true for middle to small businesses nor for desktop applications that are very much tied to MS Windows.

    To sum it up, you can never go wrong with either C# nor Java. C# is one ring to rule them all, and Java is seven rings that may never be united but are happy in their independence. Learn either one and you already learned 75% of another. Thanks God I am Oracle DBA so I don’t have to think about those language wars. As long as you use my database I am very happy (and Oracle is also) of whatever tool you use :)

Leave a Reply