Which is better, Java or C#?

aigle2am

Well-Known Member
Joined
Dec 25, 2012
Messages
288
Reaction score
27
Location
Cape Town
Hi

I am sure this must be a debate many developers have had over the years. I want to know which one is better and why?
 
Short answer? It depends :p

Java is nice and flexible - you can jump to mobile if you want, you can work on Linux-based systems, etc. C# is pretty popular with corporates as a large number of them are Microsoft .NET fans.
 
Short answer? It depends :p

Java is nice and flexible - you can jump to mobile if you want, you can work on Linux-based systems, etc. C# is pretty popular with corporates as a large number of them are Microsoft .NET fans.
C# also works on a range of devices.
A single C# code-base can be built once and used across Windows Phone, Xbox, Desktop, Web (silverlight), Windows 8, and Windows tablets (running RT).
Also don't forget the Unity supports C# which means that you can code games for any platform with C# - and the same goes for MonoGame.
 
C# also works on a range of devices.
A single C# code-base can be built once and used across Windows Phone, Xbox, Desktop, Web (silverlight), Windows 8, and Windows tablets (running RT).
Also don't forget the Unity supports C# which means that you can code games for any platform with C# - and the same goes for MonoGame.

All valid points. You can compile C# for Android as well, although I'm not happy with the examples I have personally seen where this has been done.
 
The only Java I did was during my studies at UNISA.

I just love C#. I come from a C/C++ background though so I may be biased. I also work almost exclusively on Windows technology so my time spent with Java is very limited.
 
If you're going down this road provide an example requirement, and based off that a decision can be made on which language would be better to use. If you're arguing which programming language is simply 'better' you're doing it wrong. They each have their advantages and disadvantages, decide which tool to use depending on the job.
 
Ja, but it's a useless, pointless idiotic debate to compare them as languages
Once you know the syntax of either you'll quickly pick up the the other(unless you work in my office of course)

You should rather decide which platform you want to go for.

The Microsoft route with c#:
ASP,WPF (web stuff), desktop stuff, windows mobile etc

The Java route:
jsp, javaFX, desktop stuff,java ME, android etc


And debating the platforms are equally useless.
Most times as a developer you do not get to pick the platform and servers your code is going to run on.
E.g why would you mess with ASP when you're on a Linux server where you can run PHP/JSP etc?
 
The only Java I did was during my studies at UNISA.

I just love C#. I come from a C/C++ background though so I may be biased. I also work almost exclusively on Windows technology so my time spent with Java is very limited.

Actually C# is based on Java (old J#, actually), and Java is based on C/C++ ;)
 
Actually C# is based on Java (old J#, actually), and Java is based on C/C++ ;)

Ah yes, that's true. I should really look at Java again one day. I'm currently in a comfort zone though and would rather try F# since it's looking so appealing.
 
what is better, red or blue?

I can give a biased answer :)

C# is better for anything on the desktop.
Java is better for everything else :p
 
what is better, red or blue?

I can give a biased answer :)

C# is better for anything on the desktop.
Java is better for everything else :p

Sales of desktops have plummeted world wide, while sales of mobile devices is on the increase :)
 
Top
Sign up to the MyBroadband newsletter
X