Link to home
Start Free TrialLog in
Avatar of Javatm
JavatmFlag for Singapore

asked on

Java -VS- C#, whos the best ?

Hello Everyone;

I've been reading topics and debate againts Java vs C#. I know that they likely have the same interior on code writing and I know that Java is a programming language and a flatform itself while C# depends on the .NET Framework. I want to have an idea on which is the best programming language to use ?, on the part of the web developement, software applications and mobile devices.

Thanks Guys . . .
Javatm
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

The issues are more politico-'philosophical' than linguistic ;-)
There is no such thing like best language.

Avatar of Rosewell
Rosewell

It depends on you dude, but if I were you I'll stick on java. It is were you can create every dream possible " on part of programming " actually. Dont worry about those who are die hard fan of microsoft cause where on the side of SUN.

for Venabili

// There is no such thing like best language.

actually dude there is ! and that is JAVA. I believe in it and its future.

ASKER CERTIFIED SOLUTION
Avatar of cavey79
cavey79

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
So the adage with Java is write once, run everywhere (or debug everywhere :) )
The adage with .NET is write everywhere (or in anything) and run on windows (because Microsoft can make money that way)

C# and Java are very similar, some differences also include this:
in Java, there are wrapper classes for primitive types, Integer, Float, and so on, this becomes tedious though, i.e.
hashTable.put(someObject, new Integer(45));

int i = ((Integer) hashTable.get(someObect)).intValue();

What C# allows you to do is this:
hashTable.put(someObject, 45);
int i = hashTable.get(someObject); or
Integer myInt = hashTable.get(someObject);

it automatically wraps the primitive for you.  This can be very convinient.  

C# also uses a JIT compiler, utilizing the CRL as well.  Overall, I don't see much diff between the two, except Microsoft needs a way to compete with Java.  Those are my thoughts
Java has been around for a lot longer than C# so one would expect it to be a bit more refined.
>>.Java has been around for a lot longer than C# so one would expect it to be a bit more refined

Actually that would be a good reason for it to be *less* refined as designers of C# have had all the advantages of seeing the disadvantages and limitations of Java (not that i'm saying there *are* any ;-))

One of the reasons to put your faith in Java is that it is fast becoming (if not already become) the language of choice in the academic world. New programming paradigms are being developed all the time by graduates, particularly in Java. For instance, there is *already* a Java implementation of what promises to be 'the next big thing' - AOP aka Aspect Oriented Programming, a complement to OOP.
Continuing on the same lines, i am wondering :

If Java is so hot !
Why would anyone not write equivalent of unix OS in Java ?
C was used to create Linux.
What prevents Java from being used to create Jinux ? Any particular limitations ?
JAVATM: why did you come here to ask such a silly question? Did you drop this question at MSN too?
 what did they tell you?

J4LINMAN: nice work as a hobbyhorse, but:
1) an OS should be ultimately speedy, I'm content with JAVA but for that purpose ... ANSI C,
2) you can't access memory on spurious address basis,
3) even for some applications you still must revert to C or even asm, depending on the goals set.

To all: after so many years of ALGOL, COBOL, C, FORTRAN, PASCAL, VB ...
  I want to write clever things only once, without "dialect" problems.
A bad example: every UNIX/LINUX has a ps command; but a program to read the output must know some 12 styles .....
I wish somebody wrote a standard for utility output.
And the notion of "run everywhere" is utopia: "you wrote something in 1.4.2? pity we stick to 1.3.0"
;JOOP!
>>What prevents Java from being used to create Jinux ? Any particular limitations ?

There's no such thing as an 'all purpose' language, and that's not what Java sets out to be.
Avatar of Javatm

ASKER

To : sciuriware

>> JAVATM: why did you come here to ask such a silly question? Did you drop this question at MSN too?
what did they tell you?

If it is a silly question, why would you post a comment and take time to answer the question ?. Maybe you need to look at your comments cause its unprofessional.

To All :

Thank you guys for all of your comments, more power to JAVA and God bless you all.
>> more power to JAVA and God bless you all.
God bless java and lightning strike C# (kiddin')

Thanks for the points.

As for fabz1's response - those features (automatic conversion between primitives and primitive wrappers) will be present in TIGER. Ole!
(Tiger = JDK 1.5). Kinda looks like VB ;)
>>Thanks for the points.

Not sure why you get them *all* though...
>> Not sure why you get them *all* though...
Me neither... ;)

As for java vs c - why wasn't the linux kernel entirely written in c if it's so fast? Why the need for asm?

The same argument as yours -> asm has better speed, thus it should be better. Would you agree with that????
Avatar of Javatm

ASKER

To CEHJ;

Dude how do I devide points, I just dont know ? can you help me. Thanks . . .

For Keeps : Javatm
Think it might be a bit late now - cavey79's got them all ;-)
Avatar of Javatm

ASKER

Oh, thanks anyway . . .