Java Vs C#

Discussion in 'Programming General' started by Teh_Uber_Codex, Nov 22, 2008.

Java Vs C#
  1. Unread #1 - Nov 22, 2008 at 12:41 PM
  2. Teh_Uber_Codex
    Joined:
    Nov 22, 2008
    Posts:
    75
    Referrals:
    0
    Sythe Gold:
    0

    Teh_Uber_Codex Member
    Banned

    Java Vs C#

    I was just wondering which language you guys think is best.

    Haha since I posted this in a Java-ish community I bet that most of you would go with Java Tongue

    On paper C# seems to be better than Java.
    Best of all it supports unsafe code and is said to be faster than Java.

    Anyway since both C#'s and Java's syntax are very alike I once learn the basics of both Java and C# but I want to focus on just one language and learn it.

    Cheers Guys!!!

    ~Uber
     
  3. Unread #2 - Nov 23, 2008 at 11:10 AM
  4. cp
    Joined:
    Jan 30, 2007
    Posts:
    3,278
    Referrals:
    6
    Sythe Gold:
    0

    cp an cat
    Banned

    Java Vs C#

  5. Unread #3 - Nov 25, 2008 at 3:12 PM
  6. revo lution
    Joined:
    Sep 6, 2008
    Posts:
    171
    Referrals:
    0
    Sythe Gold:
    0

    revo lution Active Member
    Banned

    Java Vs C#

    Overall, Java is better in my opinion.
     
  7. Unread #4 - Nov 30, 2008 at 9:06 PM
  8. Timestamp
    Referrals:
    0

    Timestamp Guest

    Java Vs C#

    @cp: That's the only reason that you would consider Java superior to C#?
    I suggest you take a look at this. http://www.mono-project.com/Main_Page.
    It preforms rather well in my opinion. Also,

    struct (structures) therefore store things on the stack not on the heap
    LINQ is pretty.
    unsigned types
    VM level Generics not bytecode level generics.
    unsafe code (pointers)

    It seems that you confuse familiarity with superiority.

    @revo lution: Your arguments amaze me.
     
  9. Unread #5 - Dec 11, 2008 at 8:43 AM
  10. war833
    Joined:
    Dec 11, 2008
    Posts:
    82
    Referrals:
    0
    Sythe Gold:
    0

    war833 Member

    Java Vs C#

    Java because its multi-platform and having to install .NET just blows.
     
  11. Unread #6 - Dec 16, 2008 at 2:28 PM
  12. xRaIDeNx69
    Joined:
    Dec 16, 2008
    Posts:
    43
    Referrals:
    0
    Sythe Gold:
    0

    xRaIDeNx69 Member

    Java Vs C#

    Who told you that C# is not multi-platform???
    Have you ever heard of C# Mono?

    Anyway if C# Mono didn't exist there would be nothing from holding C# from becoming multi-platform.

    Btw I personally think that C# is a better choice.

    Edit:
    Btw to the person that originally opened this thread:
    Nice way to rip-off my post. - Original Post
     
  13. Unread #7 - Dec 17, 2008 at 1:59 AM
  14. Zyloch
    Joined:
    Apr 21, 2005
    Posts:
    63
    Referrals:
    0
    Sythe Gold:
    0

    Zyloch Member

    Java Vs C#

    I have never learned C#, so I cannot give an informed answer. Regarding the original post, however, I do not know what this means: Best of all it supports unsafe code and is said to be faster than Java. Where is your evidence?
     
  15. Unread #8 - Dec 17, 2008 at 6:16 AM
  16. war833
    Joined:
    Dec 11, 2008
    Posts:
    82
    Referrals:
    0
    Sythe Gold:
    0

    war833 Member

    Java Vs C#

    I'm aware of Mono but the Winforms controls look weird on a non Windows machine and if I'm going to use GTK# then I might as well just use GTK+. ;)
     
  17. Unread #9 - Dec 19, 2008 at 5:36 PM
  18. xRaIDeNx69
    Joined:
    Dec 16, 2008
    Posts:
    43
    Referrals:
    0
    Sythe Gold:
    0

    xRaIDeNx69 Member

    Java Vs C#

    Well as I'm the person who originally posted that post on RSCA I think that I should be the person to answer your question.

    C# supports pointers which is a very big plus for C# if you ask me.
    Not only do pointers allow you to create performance-critical code but they also let you do a lot of things in memory which languages like Java can't do since they don't support pointers.
    Java doesn't have Pointers for security reasons, that's why it's called Unsafe Code.
    I'd also like to add that if you know how to program in unsafe code, there's nothing unsafe about it...
    It is important to also note that pointers in C# are somewhat limited compared to pointers in C and C++.

    Also I said that C# is said to be faster than Java because it's a fact that metadata is processed much better and faster than Java's bytecode.
    Anyway speed isn't an issue that really bothers me nowadays.
     
  19. Unread #10 - Dec 20, 2008 at 3:36 AM
  20. Zyloch
    Joined:
    Apr 21, 2005
    Posts:
    63
    Referrals:
    0
    Sythe Gold:
    0

    Zyloch Member

    Java Vs C#

    Well said. I did a little research on C# pointers, and it seems that they are for the most part useless, except for optimization. Nevertheless, it is true that C# appears to support a degree of optimization greater than that of Java. The reason I did not understand your original post is because supporting unsafe code is generally a bad thing (e.g. C++ supports unsafe pointer manipulation that can lead to corruption), but it seems that "unsafe" is actually a keyword label attached to code in C#.

    Granted, I have not done benchmarks, but I do not know if optimized C# is faster than, let's say, Java compiled to native code. Perhaps that is the case. Of course, Java by itself is typically not best for performance intensive tasks. For many of them, C# may not be appropriate either. It is a judgement call, I suppose, and you are right in that speed is not normally an issue.
     
  21. Unread #11 - Dec 20, 2008 at 8:22 AM
  22. SuF
    Joined:
    Jan 21, 2007
    Posts:
    14,212
    Referrals:
    28
    Sythe Gold:
    1,234
    Discord Unique ID:
    203283096668340224
    <3 n4n0 Two Factor Authentication User Community Participant Spam Forum Participant Sythe's 10th Anniversary

    SuF Legend
    Pirate Retired Global Moderator

    Java Vs C#

    We all know Java is not the fastest language out there. Use something else if you need really good performance. o_O
     
  23. Unread #12 - Dec 21, 2008 at 10:51 AM
  24. super_
    Joined:
    Dec 20, 2008
    Posts:
    91
    Referrals:
    0
    Sythe Gold:
    0

    super_ Member

    Java Vs C#

    if you all wanted incredible speed, you would go and program in raw machine code or assembly. but programming in ASM is difficult and takes longer to write the same code in, say, C/++ or Python. no true programmer goes out of their way to use ASM just for speed when they wrote it in say, Java. if you'd like to know, Sun's JVM can execute the bytecode of a class file very quickly, and even Python, which is intepreted (usually, ive never seen python object files used practically), can execute very quickly. IF you really needed speed, you could simply access the many intermediate-to-native programs out there, or even the Just-In-Time compilers :)

    yes, java is platform-independent. c#, along with all of the CLI .NET languages, produce platform-independent assemblies, although only the CLR VM that Microsoft develops fully supports it, probably because they are the ones who MADE the specification. mono is a project to try and write an open-source CLI impl that can be run on a series of OS.

    anyway, a question like the one posed here is impossible because it is completely biased. look at their perks and cons, and then choose one which seems more comfortable :)
     
  25. Unread #13 - Dec 21, 2008 at 5:59 PM
  26. xRaIDeNx69
    Joined:
    Dec 16, 2008
    Posts:
    43
    Referrals:
    0
    Sythe Gold:
    0

    xRaIDeNx69 Member

    Java Vs C#

    Just use the language which you think is best for the job at hand.

    No language is better than the other one.
    Unfortunately I had to learn this with time.

    Asking which is best is like saying which is best, a train or a plane???
    If you destination is lets say 10kms away from where you are right now then a train does the job better than a plane but if your destiantion is 1000kms away from where you are then a plane is the ideal mode of transport.

    If you want to do server side things that Java's the language for you.
    If you want to make Windows applications then C# is the language for you.
    If you want to make cross-platform applications go for Java since unlike C#, Java's philosophy is write once, run everywhere.
    If speed is your main priority write in C, C++ or ASM.

    Anyway, need I say more?
     
< add a panel to an applet. | Open a Page in VB >

Users viewing this thread
1 guest


 
 
Adblock breaks this site