CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 11 of 11
  1. #1
    Join Date
    Nov 2000
    Location
    TN, INDIA
    Posts
    10

    C# is Java MINUS MINUS

    I just read about C# in some article on the web. I made the following observations :
    1) It is exactly similar to a Java Code Interface etc..
    2) System.out.println is replaced by Console.writeln


    3) It is not platform independent.

    Don't you think Java - Platform Independence = Java--

    I am Just browsing thru' to get more Knowledge.
    Pl. react.


  2. #2
    Join Date
    Aug 2000
    Location
    Columbia, SC
    Posts
    18

    Re: C# is Java MINUS MINUS

    1- C# has some similar features to Java but is not even close to being exact.
    2- cout is replaced by System.out.println.
    3- C# as a language is completely platform independent. It has been submitted to a comitee for standardization (which is more than can be said for Java) and does not, by default, only run on MS platforms.

    If you continue to read about C# without prejudace you will see that it is a well-thought out and well-designed language that takes the best features from many other languages (including but not limited to Java) and adds some great features of its own.


  3. #3
    Join Date
    Nov 2000
    Location
    Maryland
    Posts
    18

    Re: C# is Java MINUS MINUS

    The event models differ greatly between C# and Java. C# uses a delegate event model, allowing events to be tied to a list of functions.

    There are no doubt similarities, as Java and C# both decended from the same language, and they both attempt to provide some similar capabilities (Garbage Collection, etc.)

    In C#, and in fact in any .NET compliant language, EVERYTHING is typed. An Integer is a class, with methods like ToString.

    Ghannodahn Kirrel
    Librarian, <a href="www.icitadel.com">The Infinity Citadel</a>

  4. #4
    Join Date
    Nov 2000
    Location
    TN, INDIA
    Posts
    10

    Re: C# is Java MINUS MINUS

    Thanx for Reply!
    Can anyone tell how C# is platform independent or how effective ? I believe it was made to work best on Windows, but can on others!

    Replies Invited!


  5. #5
    Join Date
    Nov 2000
    Location
    TN, INDIA
    Posts
    10

    Re: C# is Java MINUS MINUS

    How is the event handled in C# ? How effective is it over Java ?

    About Crossplatform issue does it support Solaris Fully

    Thanx for al Replies


  6. #6
    Join Date
    Nov 2000
    Location
    Maryland
    Posts
    18

    Re: C# is Java MINUS MINUS

    I suppose the delegate issue is a matter of preference. To give a brief illustration of how it works:

    I have a function called ShowMessageBox.
    I have a button called btnMessage.

    To make the ShowMessageBox function execute when btnMessage is clicked, I would use the following code:

    btnMessage.OnClick += ShowMessageBox;

    I've looked at Java's event model, and my opinion is that a delegate model is far more efficient and easy to use. I'm certain, however, that there are Java programmers who prefer their event model. At the very least, I would assume Sun does, because delegate events is one of the modifications MS made to Java to prompt the lawsuit in the first place.

    As far as being cross-platform, you can't really compare C# to Java for that. Java is both a language and a development/execution environment. C# is just a language. It works within the .NET Framework, which is a development/execution environment. .NET Assemblies will run on any machine supporting the .NET Virtual Machine. At present, I am assuming that Linux and Mac will be supported in addition to Windows products. This is based on an MS investment in Corel for Linux, and an MS Partnership with Apple for API porting.

    Ghannodahn Kirrel
    Librarian, The Infinity Citadel
    http://www.icitadel.com

  7. #7
    Join Date
    Nov 2000
    Posts
    3

    Re: C# is Java MINUS MINUS

    C# is Java 3 - Don Box.


  8. #8

    Re: C# is Java MINUS MINUS

    The best description I've heard to date is "Java is rewrite everything, run anywhere", .NET (remember that C# is just a part of a set of completely compatible languages including VC++ and VB) is "rewrite nothing, run only on Windows". Given that some customers have a large set of existing code, the .NET (including C#) may be the more attractive option.

    Randy Davis

  9. #9
    Join Date
    Dec 2000
    Location
    Karachi, Pakistan
    Posts
    2

    Re: C# is Java MINUS MINUS

    Well, I've been hearing this comment for quite some time now, its time for me to say something.
    C# looks similar to Java in many senses as it was supposed to be, Microsoft's second reply of Java-like language.
    C# is just a language not a platform and isn't supposed to be one, I find C# pretty interesting to take advantage of, one

  10. #10
    Join Date
    Aug 1999
    Posts
    13

  11. #11
    Join Date
    Dec 2000
    Location
    United Kingdom
    Posts
    96

    Re: C# is Java MINUS MINUS

    MS never claimed it is a competitor for Java.This is the lang they built for rapid COM development.

    So it is again platform dependent.but to develop a COM in Java it will take 10 times more time than c#.there lies the advantage.

    so it is better just to grab the good features of a lang than comparing btn them

    regds
    Karthik


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured