Click to See Complete Forum and Search --> : C# is Java MINUS MINUS


RajeshK#
November 14th, 2000, 06:41 AM
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.

jedipoteat
November 14th, 2000, 09:16 AM
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.

Ghannodahn
November 14th, 2000, 11:36 AM
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>

RajeshK#
November 14th, 2000, 11:35 PM
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!

RajeshK#
November 14th, 2000, 11:36 PM
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

Ghannodahn
November 15th, 2000, 09:42 AM
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

AmitaK
November 16th, 2000, 12:17 AM
C# is Java 3 - Don Box.

Stephen Davis
December 6th, 2000, 08:50 PM
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

sfahmed
December 27th, 2000, 01:16 PM
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

xiaohm
January 15th, 2001, 02:04 AM
http://www.salon.com/tech/col/garf/2001/01/08/bad_java/index.html

karthik_rao
January 19th, 2001, 04:10 AM
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