C# Vs Java

by 30 replies
36
Whats better?
#programming #java
  • For making desktop apps and server side apps btw. Thank you!
  • It depends on what your goal is. C# generally only works on Windows under .NET, while Java is cross platform. If you're committed to only developing for Windows, C# is the way to go. Otherwise, Java has its own benefits, and can be used for either desktop, server apps, or embedded browser apps, though browser apps are less popular these days. Also, Java is what is used for making most Android apps, which is a huge benefit.

    It just depends on what you want to do.
  • It depends.....

    Java programming language is, in theory, cross platform... But, Java is not standardized... Oracle is in complete control...

    The C# programming language is an ECMA standard... Plus, C# compiled with Mono runs on many operating sytems....... From their web site....They both have VERY similar capabilities.... It comes down to personal preference..... I prefer C#.......

    God Bless,

    Rich Beck
    • [1] reply
    • True, that is definitely one of the downsides. Although, Google has proven you can basically copy the language and port it onto another platform (Android, with the Dalvik Virtual Machine, which Oracle has no control over). And they did so without losing a lawsuit, so far. So although there's not an ECMA standard, there's basically a standard, created by Sun, and part of it is even open source.
  • Banned
    C#,though I am a java fan.I have taken the decision after working with both java & C#.For designing a web page C# is too fast but for the web service java is secured.With .net frame work C# is pretty good.
  • I would recommend C# for it's speed of development - don't worry about cross platform issues, as specialization is key in this game. No point trying to accomodate everyone.
  • I would recommend C# . I agree with all the above warriors and also recommend this so that with just additional plugins you can develop mobile applications and deploy on windows mobile.
    • [1] reply
    • Unis seem to always teach Java, and to be honest it makes sense. It's cross platform (Windows, OSx, Linux, BSD) and it's multi-purpose (desktop, server, mobile) and it has a load of libraries that will do most of the ground work for you.

      However, I don't think it is that widely used server side now, I think the UIs it creates aren't that nice and the fact that there is an Oracle, Sun and "Open Source" virutal machine is just confusing. (I had issues installing the ADT for Eclipse because I had the open version and not Suns, it shouldn't have mattered but it did for some reason). I use Java for Android development but that's about it.

      I like C#, as people have said it can run on different platforms with the use of mono. It will run natively on Windows anyway and the popular Linux distros are starting to ship with mono by default so that's a bonus.

      Neither is "better" though. They are both good languages and they both do more or less the same thing (C# probably slightly more). If you are looking to learn one it doesn't really matter which. Once you know one switching to the other later down the line will be simple as they are very similar.
  • I think Java because it is a programming language which specifically designed for use in the distributed atmosphere of the Internet and it allows you to play online games, chat with people around the world and view images in 3D.
    • [1] reply
    • Yes, it was designed for that, but it ultimately failed in its designed purpose. Other technologies (like JavaScript) turned out to be a lot easier to use for the (client side) internet. Also, Flash displaced a huge portion of Java applets, because it is fast enough for the web, and its underlying programming language, Actionscript, is easier to use than Java.

      Java is not a complete loss, however. It has found its way on desktop, servers, and to a certain extent, mobile, depending on how you view things.
  • I would recomment c sharp for desktop apps, otherwise use Java.
    • [1] reply
  • According to me Java is the best as compare C#.because C# generally use on Windows under .NET, while Java is cross platform.
    • [1] reply
  • Banned
    Obviously C#,because it is too fast then java,on the other hand it is good at web service and application.
    • [1] reply
    • Actually, this is absurd and incorrect. I don't advocate either language specifically, but C# is definitely not faster than Java. For a Windows UI under .NET it could be faster than Java, but on everything else, Java beats it hands down when measuring with benchmarks. Do some research before you just spout half-truths.
  • Banned
    [DELETED]
  • sure java programming is better than C#
  • Banned
    [DELETED]
    • [1] reply
    • Show me one benchmark that proves that C# is faster than Java. Just one. I bet you can't find any. I can show you several that show Java is faster. Whether this proves anything or not I don't know. Whether C# has a "brighter future" also could be a matter of considerable debate. It wouldn't be hard to make the case that the Android platform has a bigger future than Windows does, though who knows, really? Some people think Android is the "next Windows", and they could be right!
  • Both are programming languages but java is not support multiple platforms c# is multiple platforms support languages. I prefer c#
  • I think java would be better but it totally depends on you which one you like most and with which one you feel comfortable.
  • i think Java better.
  • If your developing only for Windows I recommend C#, otherwise Java of course.
    • [1] reply
    • Yes... I do agree with you but for system performance java is a little bit ahead.
  • Wow, that's a broad question. As far as the languages themselves go they're pretty similar in functionality and feel. Will agree with most others on the thread, though I personally prefer C# / .NET by a long shot you're best off going with Java if cross-platform desktop apps is a primary goal. For web based stuff I'd probably go C# / .NET (between these 2 options anyways), the ASP.NET MVC framework is nice.
  • Banned
    [DELETED]
  • It depends upon how they're used. For fat clients, .NET/C# is the way to go provided that you are only interested in working on the Window's OS. For web and enterprise applications, Java is the better approach. In fact, Java is used on many of today's systems from dvd players, to the Android OS and to many back end systems.
  • [DELETED]
  • Banned
    [DELETED]
  • JAVA is always better than c# for desktop application.JAVA is more secure and user freindly language ever.
  • Both language have it's own ability, But i prefer java more than C#.
    • [1] reply
    • yes... you are right and java has the special ability of garbage collection.
  • Banned
    [DELETED]
    • [1] reply
    • It's better in case of web based programming.
  • There is very much to talk about the differences between C# and Java. Choosing it depends upon your need. While both of them are OOP languages, there are lot of variations to talk about. Since Java is first introduced, now under the control of Oracle Corporation, getting good and rapid development for developing any kind of applications with ease and less complexity and more security, Java is obviously the friendly language to the developers and also worthy language to the end-users.

Next Topics on Trending Feed