|
-
November 14th, 2000, 07:41 AM
#1
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.
-
November 14th, 2000, 10:16 AM
#2
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.
-
November 14th, 2000, 12:36 PM
#3
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>
-
November 15th, 2000, 12:35 AM
#4
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!
-
November 15th, 2000, 12:36 AM
#5
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
-
November 15th, 2000, 10:42 AM
#6
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
-
November 16th, 2000, 01:17 AM
#7
Re: C# is Java MINUS MINUS
-
December 6th, 2000, 09:50 PM
#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
-
December 27th, 2000, 02:16 PM
#9
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
-
January 15th, 2001, 03:04 AM
#10
Re: C# is Java MINUS MINUS
-
January 19th, 2001, 05:10 AM
#11
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|