1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Java vs C#

Discussion in 'General Programming Chat' started by Nick1, Apr 25, 2011.

  1. Nick1

    Nick1 Junior Member

    Joined:
    Oct 16, 2009
    Messages:
    196
    Likes Received:
    45
    Is there any advantages of using one over the other? What are the prime differences between the two?

    I started learning C# by myself and could do little things like using the HTTP class, but in uni they had us learn Java and I was like "damned".
     
  2. l0goz

    l0goz Jr. VIP Jr. VIP Premium Member

    Joined:
    Jun 25, 2010
    Messages:
    543
    Likes Received:
    353
    Occupation:
    IM
    Location:
    Close to your mom
    ther eis nothing different, is just like saying english and spanish, everything is the same but different dialect.

    Java is a C-Based language, syntax is the only thing that changes. If you are able to use C#, then java should be easier.

    Is up to you what do you prefer to use depending on what are you doing?
     
    • Thanks Thanks x 2
  3. nemsis

    nemsis Jr. VIP Jr. VIP Premium Member

    Joined:
    Sep 27, 2009
    Messages:
    173
    Likes Received:
    283
    the big difference between c# and java is visual studio. making guis with c# is way easier and efficient than in java (the syntax is exactly the same).

    I'm a c# guy, and I really recommend you c# :)
     
    • Thanks Thanks x 3
  4. supparman

    supparman Newbie

    Joined:
    Jul 22, 2009
    Messages:
    28
    Likes Received:
    5
    You can run java on any platform and for guis you can use windowbuilder plugin for eclipse.
     
    • Thanks Thanks x 1
  5. nemsis

    nemsis Jr. VIP Jr. VIP Premium Member

    Joined:
    Sep 27, 2009
    Messages:
    173
    Likes Received:
    283
    Yes but it sucks compared to visual studio.

    C# is also cross platform with mono.
     
  6. supparman

    supparman Newbie

    Joined:
    Jul 22, 2009
    Messages:
    28
    Likes Received:
    5
    sucks? i bet you havent even tried it :p
     
  7. ckramer18

    ckramer18 Registered Member

    Joined:
    Dec 25, 2009
    Messages:
    54
    Likes Received:
    5
    Eclipse is amazing but yeah I love Visual Studio as well. I honestly like C# alot better and the .NET framework makes your life easy if you want to make any automation type programs. For website stuff I use eclipse with php instead of using asp.
     
  8. drey2k

    drey2k Power Member

    Joined:
    Jan 4, 2009
    Messages:
    551
    Likes Received:
    169
    Occupation:
    Finance guy
    Location:
    USSR 1943
    Why not Python?

    It integrates better with web development and you can make all the GUI you want with wxPython.
     
  9. gnote

    gnote Registered Member

    Joined:
    Mar 10, 2009
    Messages:
    80
    Likes Received:
    6
    Occupation:
    Programmer
    Location:
    USA
    i think it comes down to what you are programming for. both languages are very similar and are tied to a required framework. if you want your users to have to install java, then use java. if you would rather they had to install .net (which most windows useres will already have) then use c#

    i prefer c#... i don't code java but there are certainly some java gurus that tell you it's the greatest thing ever

    i have tried eclipse to and its great im sure compared to using a notepad to script, but it's no visual studio 2010 man
     
  10. aheerwagenIM

    aheerwagenIM Newbie

    Joined:
    Sep 30, 2010
    Messages:
    25
    Likes Received:
    10
    Java's pretty nice if you want to run things on a VPS or have it be cross-platformable. Otherwise I have heard that the C# GUI development is much easier.

    In the United States there are more non-freelance employers looking for Java programmers, but if you're after programming just for yourself they're almost exactly the same besides the two reasons mentioned above.
     
  11. member55

    member55 Newbie

    Joined:
    Dec 10, 2009
    Messages:
    45
    Likes Received:
    5
    Java is easier to write codes when compared with C, or C++.. Eclipse is the best IDE,
    also u can develop android apps with the help of java
     
  12. plumbum416

    plumbum416 Registered Member

    Joined:
    Mar 17, 2011
    Messages:
    93
    Likes Received:
    16
    same here, I prefer Java cause there is eclipse :D
    It just feels like eclipse writes the programm for you (well, it acutally doesn't but development is so easy with it and a bit of knowledge)
     
  13. gainer

    gainer Newbie

    Joined:
    Nov 19, 2009
    Messages:
    21
    Likes Received:
    2
    Occupation:
    Programmer / Web Designer
    Location:
    Dirty South
    Big difference between the two java runs on the JVM so it is compatible with any OS that has the virtual machine installed on it. Java I would say is much slower than C# although C# has to be run on .Net framework its still faster. I haven't researched Mono much does it compile C# to machine code or does install a .Net like framework to run apps on. I like java for cross platform C# for pretty windows GUI's. If you looking for speed you want to go with C, or C++
     
  14. madblacker

    madblacker Regular Member

    Joined:
    Nov 2, 2009
    Messages:
    268
    Likes Received:
    19
    I doubt c# is MUCH faster than Java, they are very similar and both use virtual machines. With c# you are married to Microsoft and all their crap so it may be harder to develop on the platform for free unless you want to dig around to pirate a bunch of software and its probably harder to run c# programs on a linux server (which is always cheaper). I'm a Java programmer and just prefer the open source community overall
     
  15. ionutcib

    ionutcib Junior Member

    Joined:
    Feb 10, 2011
    Messages:
    116
    Likes Received:
    8
    Occupation:
    Java Programmer
    I use Netbeans for GUI. It has a visual development interface that you can use with ease and also you can set themes to it with Substance.
     
  16. jerktronic

    jerktronic Newbie

    Joined:
    Jul 12, 2008
    Messages:
    5
    Likes Received:
    1
    Java and C# run neck and neck for most things. There are some performance gains and losses with each language. If you can write in one, you can write in the other. The main difference is learning how to tweak the JVM for Java.

    Java is nicer in that it was build to run multi-platform out of the box. C#, you are not necessarily married to Microsoft as you can use Mono on *nix, but honestly it doesn't run as nice and Mono is years behind on keeping up with the latest .NET developments.

    Long story short, if you want easy software for the masses, use C# since .NET is part of Windows these days. If you are looking or data crunching power that you can run on a server, then Java is likely your best choice.
     
    • Thanks Thanks x 1
  17. milke_sj

    milke_sj Junior Member

    Joined:
    Dec 4, 2009
    Messages:
    151
    Likes Received:
    30
    Im a software eng. grad.

    and realizing that C# is becoming more and more used in the job field.

    pce
     
  18. xaknafein

    xaknafein Newbie

    Joined:
    Oct 11, 2011
    Messages:
    18
    Likes Received:
    3
    Also it's slightly easier to write "efficient" code for C# than Java. For example, C# now has great features such as Parrarel.ForEach and parrarel collections and they are available out of the box.
    Also, with Java, at one time or another you are going to be introduced to Maven, and Maven chews up newbs and spits them out. If you ever decide to learn java, I suggest staying as far away from Maven as possible unless you are developing an enterprise application.
     
    • Thanks Thanks x 1
  19. skrode

    skrode Junior Member

    Joined:
    Nov 13, 2011
    Messages:
    103
    Likes Received:
    16
    same goes for java
     
  20. theMagicNumber

    theMagicNumber Regular Member

    Joined:
    May 13, 2010
    Messages:
    345
    Likes Received:
    195
    Java is more platform independant, but C# is getting more and more popular. There are a lot jobs for C# WPF that are highly paid.
    You can build your apps targeting .NET 2.0, so even the XP users won't have to install the big framework. Well you are going to lose some useful features, but it will be better for the end user. I think Windows 7 comes with .NET 3.5.
    Telerik and Devexpress sell very stylish and useful .NET controls, well the price is around $1000 but it is worth it and will make your life easier.

    PS:
    http://www.veridicus.com/tummy/programming/java_vs_csharp.asp

    "Java developers are more likely to be University graduates with a strong understanding of OOP"
    THIS MADE ME ROLL ON THE FLOOR LAUGHING, so .NET developers are more likely to be Elementary school graduates.
     
    • Thanks Thanks x 1
    Last edited: Jun 28, 2012