Thread: Java versus C#

Page 1 of 8 123 ... LastLast
Results 1 to 10 of 75
  1. #1 Java versus C# 
    Registered Member
    IngeniousPentaSquid's Avatar
    Join Date
    Jun 2011
    Age
    28
    Posts
    993
    Thanks given
    47
    Thanks received
    140
    Rep Power
    79
    Please Note:
    -This is my first informative thread.
    -I'm not the best of programmers.
    -I'm fairly new to c#
    -Please don't flame.

    Much of the rsps community is based around Java, it is the main (default?) language for building runescape emulators. The bonus with Java is that it can be used at any platform making it very versatile amongst developers and platform is a major issue within developing applications. Everyone has used a java application before (if you havn't then >.>). Java is a mature language and has been with us for quite a while and has served us well for quite some time. Yet when we are developing we always look towards performance of our applications. We continually make changes to our code to make it smaller and more proficient.

    Now C# is a new and modern programming language made by microsoft (duh). Now when I usually see people's reactions to c# on here it's usually, "c# is a shit rip off java", well java is based on C so I wouldn't be talking. You may call it a rip of java because in a way it is. The real issue between the war of languages is the versatility of the language, in other words, what platform it runs on. Java is very versatile whereas c# is stuck with ms based OS's. There are microsoft haters out there, so I won't comment.

    What microsoft have done with c# is to create a language that cuts down development time, by reducing the time consuming factors of memory management, type safety, libraries etc. This lets the developer work on the actual program and the logic of it. What they have done is taken Java and "removed this", "added that", "oh, lets make this a bit better". This way they have created a language which could be called "better" than java.




    ================================================== ==


    Like Java, c# is a single rooted hierarcy of classes. in c# they are defined

    Code:
    System.Object
    in Java:

    Code:
    java.lang.Object;

    These are the same.

    but when we look otherwise, c# just makes your life simpler.

    Like in getting and setting

    Java:
    Code:
    public int getTroll() {
    	return troll;
    }
    
    public void setTroll (int face) {
    	troll = face;
    }
    whereas in c#

    Code:
    public int Size {
    	get {return size;
    	}
    	set {size = value;
    	}
    }
    in c# it is inherited wheras in java you have to continually maintain this.

    Anyways, overall which language you choose is up to you..





    This was inspired by mgi125(because i really hate him )
    ©®
    Reply With Quote  
     

  2. #2  
    Community Veteran


    Join Date
    Jan 2008
    Posts
    2,659
    Thanks given
    494
    Thanks received
    627
    Rep Power
    980
    This only seemed to touch one (small) point , which you could've developed further by mentioning auto-implemented properties.

    Quote Originally Posted by Trollingfaces View Post
    c# is stuck with ms based OS's
    It's just that Microsoft doesn't support other platforms, for obvious reasons. See Mono.
    ~iKilem
    Reply With Quote  
     

  3. #3  
    Registered Member Killer 99's Avatar
    Join Date
    Dec 2007
    Posts
    1,480
    Thanks given
    171
    Thanks received
    503
    Rep Power
    414
    Much of the rsps community is based around Java, it is the main (default?) language for building runescape emulators.
    Yes that is obviously because the client is written in Java.


    Overall I really don't see the point of this thread, C# and Java are byfar 2 different things, one is compiled into a PE and the other runs in a virtual machine. You should probably consider that before making this arguments. Besides you pretty much argued against yourself, so no one really has any room for their own opinion.
    Reply With Quote  
     

  4. #4  
    Renown Programmer and Respected Member
    Maxi's Avatar
    Join Date
    Jun 2008
    Posts
    3,197
    Thanks given
    281
    Thanks received
    1,095
    Rep Power
    1366
    Ever heard of mono?

    Mono
    Reply With Quote  
     

  5. #5  
    Registered Member

    Join Date
    Jun 2011
    Posts
    153
    Thanks given
    0
    Thanks received
    137
    Rep Power
    110
    Quote Originally Posted by Killer 99 View Post
    Yes that is obviously because the client is written in Java.


    Overall I really don't see the point of this thread, C# and Java are byfar 2 different things, one is compiled into a PE and the other runs in a virtual machine. You should probably consider that before making this arguments. Besides you pretty much argued against yourself, so no one really has any room for their own opinion.
    C# is incredibly similar to Java from the semantic and syntactical perspective (Despite it also incorporating many things from C++ amongst other languages), and their compilation differences aren't even huge as compilation is required for both C# and Java. The main differences are the output (CIL or Java bytecode), and, in fact, look at both .jar files and .NET Portable Executables and you'll find they are quite similar! They both contain bytecode and metadata, it just so happens that Microsoft have tarted up their own executable format instead of distributing glorified archives, but still, the idea remains the same.
    Reply With Quote  
     


  6. #6  
    Community Veteran


    Join Date
    Jan 2008
    Posts
    2,659
    Thanks given
    494
    Thanks received
    627
    Rep Power
    980
    Quote Originally Posted by Killer 99 View Post
    ...the other runs in a virtual machine...
    Huh? Both run in a virtual machine.
    ~iKilem
    Reply With Quote  
     


  7. #7  
    Renown Programmer
    veer's Avatar
    Join Date
    Nov 2007
    Posts
    3,746
    Thanks given
    354
    Thanks received
    1,370
    Rep Power
    3032
    ITT people weren't aware that there are JIT and AOT compilers for both java AND c#
    Reply With Quote  
     


  8. #8  
    Registered Member

    Join Date
    Jun 2011
    Posts
    153
    Thanks given
    0
    Thanks received
    137
    Rep Power
    110
    Quote Originally Posted by super_ View Post
    ITT people weren't aware that there are JIT and AOT compilers for both java AND c#
    I have a feeling that this is directed at me, so, I'm going to blindly jump into defense mode and clarify that I was referring to the typical workings of Oracle's javac and Microsoft's Visual C# compiler (Code -> Bytecode compilation) and I am quite aware that JIT and AOT compilers exist for both languages (The HotSpot JIT, Excelsior JET, GCJ; CLR JIT, Mono JIT & AOT etc.). I did only find out about Mono's AOT capabilities a few weeks ago though, but it's definitely something I'm going to remember for the future!
    Reply With Quote  
     

  9. #9  
    Registered Member
    Join Date
    Sep 2011
    Posts
    1
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Didnt Sun microsystems win a lawsuit with microsoft because of how C# was so similar to Java
    Reply With Quote  
     

  10. #10  
    Registered Member
    IngeniousPentaSquid's Avatar
    Join Date
    Jun 2011
    Age
    28
    Posts
    993
    Thanks given
    47
    Thanks received
    140
    Rep Power
    79
    Quote Originally Posted by iKilem View Post
    This only seemed to touch one (small) point , which you could've developed further by mentioning auto-implemented properties.


    It's just that Microsoft doesn't support other platforms, for obvious reasons. See Mono.
    I just wanted to brush onto the topic that people should move on, plus I wrote this while in bed, otherwise I would have gone into detail.
    ©®
    Reply With Quote  
     

Page 1 of 8 123 ... LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Rock and Metal versus Rap
    By peterbjornx in forum Voting
    Replies: 12
    Last Post: 01-24-2010, 01:55 PM
  2. Z508 Player versus Monster
    By Zachhh in forum Show-off
    Replies: 33
    Last Post: 10-27-2009, 11:40 PM
  3. KKK Versus black kid
    By 2ndOfMay in forum Humor
    Replies: 6
    Last Post: 10-12-2009, 02:06 PM
  4. I/O versus CPU processing time
    By Maxi in forum Informative Threads
    Replies: 45
    Last Post: 09-15-2009, 02:39 PM
  5. Wafflez Versus Inside Sin
    By Inside Sin in forum Battles
    Replies: 9
    Last Post: 10-31-2007, 02:11 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •