Archive for the ‘Java’ Category

.Net vs Java

August 20, 2012 Leave a comment

I am sure that you are wondering, or have been brought here by trying to decide the merit or differences between Microsoft’s .Net and Sun/Oracle’s Java platforms.  There are a ton of sites that will give you the technical differences, ( Wikipedia has a few good ones: and and I will touch on the differences, but here is the biggest and only substantial difference: personal preference.


About me, briefly: I learned VB.Net in college, right after it was released.  Many thanks to Dr. Jenny, who will likely never read this, but had the forethought to teach a class on this new technology, and it was a revelation to me and felt far superior (which it is, and I can defend that position easily) to C++ which I had studied previously.  I then entered the workforce doing a combination of VB.Net and C# depending on the project (see a future Musing for those practical differences).  After about 4-5 years of .Net work in various capacities, I took it upon myself to learn Java and try to expand my knowledge base.  I studied several books and took the SCJP certification test, which I passed handily.  Passing it handily was a result of study, but honestly was mainly a result of knowing C# and how to use it.


Throughout the years, Microsoft and Sun/Oracle have copied each other and the great ideas that they have respectively had: generics and collections, delegates, properties, foreach loops, anonymous things. There has been an almost constant convergence that  has started to reverse, but I believe will continue in the long term.  As one iteration of a language invents a new way of doing things, the other will inevitably follow, however, they will both attempt to stay ahead of the other.  Consider this similar to the great marketing rivalries in technology, Microsoft/Google vs. Apple, Microsoft vs Sony vs Nintendo.  Perhaps the biggest similarity is that Microsoft is always on one end of it!


Having gone from .Net to Java, specifically C# 3.5 to Java 6, it was very straightforward and easy to adjust.  Coming back from Java 6 to C# 4.0 was likewise easy, however one thing that is overlooked in the technical discussion is the IDE.  Microsoft’s Visual Studio is a great IDE.  Especially once you are used to it and finding everything, it works great.  Snippets and searching and managing projects is great, as well as integration with Visual Source Safe and/or Subversion for source control.  Oracle’s Eclipse is also a great IDE.  If you are ever trying to learn how to work with it, print out a cheat sheet of keyboard shortcuts!  (  I find myself missing the shortcuts like Cntl+Shift+R/T for quick class opening immensely.


If you are going from C# to Java, it will be as easy as getting used to Eclipse.  If you are going from Java to C#, I recommend reading a book to get used to Visual Studio and the Microsoft world as a whole.  If you are going to or coming from VB.Net, then you are in trouble, unless you have done some C-related coding in the past.  In that case, pick up an introductory book to VB.Net or Java to ensure you can grasp the syntax differences.  VB.Net reads like a book, Java and C# read like code, and you may need a translator to pull that off.  The general object oriented topics and abstraction will always be the same and at the end of the day any of these can meet your needs and they all have pluses and minuses, but it really just depends on what your coder likes the best.  Always put them in a position to give you the best code and you will [usually] get the best code.  Frameworks and platforms can be adjusted easily, but coders who are stuck in their ways cannot.


Personally, I miss Java right now, but I really missed .Net when I was working with Java, so that just means that they’re truly about the same!!

Categories: .Net, Java, Musings