aspose file tools*
The moose likes General Computing and the fly likes Which  is better C# or JAVA? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » General Computing
Bookmark "Which  is better C# or JAVA?" Watch "Which  is better C# or JAVA?" New topic
Author

Which is better C# or JAVA?

Bobby Sharma
Ranch Hand

Joined: Mar 18, 2008
Posts: 574
    
    1

I intend to know Which language is better C# or Java?
What advantages Java have over C#?
is it good idea to move to C#?
I heard that C# can do low level stuffs which Java lacks.
is C# really powerful than JAVA?
I read Wikipedia but I am still confused.

I love Java like a hell and I have no intention to move to another language such as C# but I am afraid C# because I see people tell C# have better features than Java and has good future.
please help.
sorry for asking too many questions ,by the way.


Back to Java , again.
Peter Chase
Ranch Hand

Joined: Oct 30, 2001
Posts: 1970
I have done Java for ages, but recently started with C# and .Net.

I find C# to be mostly very similar to Java. It has a few nice features and a few annoyances.

Both C# and Java are high-level languages that do not allow direct access to memory or hardware. Java has the Virtual Machine concept, which is not really present in C#, but the end effect is rather similar.

You can't do really low-level stuff directly in either language. In both cases, there is a defined interface by which you can call C or C++ code that does low-level stuff. The Java JNI is quite different to the C# Interoperability feature, but they both achieve rather the same thing.

I wouldn't say there was too much difference between the languages.

Another thing to compare is the libraries with which one is typically working: the Java API and the .Net Framework. I must say that I have been very impressed at what I can achieve with .Net, in a short time, with little prior experience of Microsoft programming. It seems to me more productive than Java, at least for what I've been doing.

However, the big disadvantage of .Net is that it is mostly for Microsoft Windows only. Although there have been some attempts at .Net for Mac, and maybe other platforms, these do not provide the full functionality.


Betty Rubble? Well, I would go with Betty... but I'd be thinking of Wilma.
Anubhav Anand
Ranch Hand

Joined: May 18, 2007
Posts: 341

Well, I have worked with both languages. Both are very competent and impressive except for a few jerks here and there.

But, I personally feel that Java is better ( No offences ..!! Eek seems I like Java far more ) as most of the times you make your components on your own and have better control over them.

Or, rather I shall say that too much of C# drag-drop makes one lazy and one gets a bit drifted from ground coding.

But, indeed C# coding is rapid development in contrast to Java.


Forgot to mention that, the new .NET froamework viz 3.0 and 3.5 have come up with some very high quality...drag&drops .
[ April 11, 2008: Message edited by: Anubhav Anand ]
Nicholas Jordan
Ranch Hand

Joined: Sep 17, 2006
Posts: 1282
The only dumb question is one you should have asked and didn't.

Learn every language you can. Each language has good aspects and bad, each has a stituation in which it offers definite advantages.

It used to be that editors were called linkage-editors, allowing one to call another programming linguistic directly.
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18570
    
    8

Java is better than C# because it runs on my IBM System i and C# doesn't.
Raghavan Muthu
Ranch Hand

Joined: Apr 20, 2006
Posts: 3344

Originally posted by Peter Chase:
I wouldn't say there was too much difference between the languages.



I too heard the same though i have not really worked in C# and i am working only in Java mostly. I also read that .Net was a mere replica/copy-cat of J2EE framework as it was developed later. I don't invite for any hot debates here, just sharing what i have heard and read!


I must say that I have been very impressed at what I can achieve with .Net, in a short time, with little prior experience of Microsoft programming.


Very true and i believe most of the people would agree with the way Microsoft's technologies are developed with their ease of usage!


However, the big disadvantage of .Net is that it is mostly for Microsoft Windows only. Although there have been some attempts at .Net for Mac, and maybe other platforms, these do not provide the full functionality.


Yes, another well known fact!

Was not aware of their attempts at Mac OS, Thanks Peter for sharing the views with your experiences!


Everything has got its own deadline including one's EGO!
[CodeBarn] [Java Concepts-easily] [Corey's articles] [SCJP-SUN] [Servlet Examples] [Java Beginners FAQ] [Sun-Java Tutorials] [Java Coding Guidelines]
Raghavan Muthu
Ranch Hand

Joined: Apr 20, 2006
Posts: 3344

Originally posted by Anubhav Anand:
[QB].. I shall say that too much of C# drag-drop makes one lazy and one gets a bit drifted from ground coding.

But, indeed C# coding is rapid development in contrast to Java.



Pros & Cons? But very true and agreeable facts!
Bobby Sharma
Ranch Hand

Joined: Mar 18, 2008
Posts: 574
    
    1

Thanks for your valuable information.
By your valuable information I have reached at the conclusion that I should
never move to C# instead I move to C++(my old friend but he hits me too hard
so I afraid of him, LOL) and I won't leave Java until I have 5 year or more
experience in it.

C# is nothing special it can't do low-level , too bad ,just RAD if not RAT.
Raghavan Muthu
Ranch Hand

Joined: Apr 20, 2006
Posts: 3344

Originally posted by omi sharma:
Thanks for your valuable information.
By your valuable information I have reached at the conclusion that I should
never move to C#


I don't think the suggestions given by Ranchers were of this kind. Moreover it was just listing of pros and cons of each. Infact one major point given was "there were not much differences between C# and Java".
Bobby Sharma
Ranch Hand

Joined: Mar 18, 2008
Posts: 574
    
    1

Hahaha ,yea I know but I will never move to C# instead I shall do
Perl,Ruby or even C++.Because my future is in Linux and Solaries.
Pratap koritala
Ranch Hand

Joined: Sep 27, 2006
Posts: 252
C# is better than java because I can develop good Windows and Web application for Windows Platform.

Java is better than C# because I can give the same application to my friend who loves Linux and hates Windows.


Java is better than C# because Java Serves better for Enterprise application than C#.
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14164
    
  19

Originally posted by omi sharma:
I intend to know Which language is better C# or Java?

You're not going to get a clear answer to this question, because it depends on lots of other conditions that you didn't mention.

Your question is now like asking "Which fruit is better? Apple or pear?".


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
Pat Farrell
Rancher

Joined: Aug 11, 2007
Posts: 4659
    
    5

There is no better.
There is not enought difference in the language to make any difference. The big one is that Microsoft likes C## and binds it to Windows.

All languages have problems. None last very long. Learn many.

I'm getting ready to play some with scala, it looks to be a better Java than Java.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Originally posted by Anubhav Anand:

Or, rather I shall say that too much of C# drag-drop makes one lazy and one gets a bit drifted from ground coding.

[ April 11, 2008: Message edited by: Anubhav Anand ]


I do not know a single skilled .NET programmer that uses the drag and drop interface.

Only time I have ever used it was when I first started or when I am doing a quick demo in a talk.

Eric
Kumait Muhammed
Greenhorn

Joined: Jan 14, 2010
Posts: 3
Hello There,
I started using Java 2 years ago, moved to c# recently for a new job, the movement was very easy, Microsoft did a good work "Coping" Java.
After I started working with C# I have to admit that it is a great language with a lot of good features, besides the language-independent nature of the .net framework is a unique feature, we had many members in the team working in VB.net with no problems at all.
But there is one thing, I don't know why but I can't have the passion I had for Java in C#, the same passion that I had for Delphi for many years, you may think what does that affect, I think a lot, when you "love" the language you are working with you really can be more productive/creative.

I like to continue using Java but I want to improve my C# skills for my job, do you think I can do the both?

Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14164
    
  19

Kumait Muhammed wrote:I like to continue using Java but I want to improve my C# skills for my job, do you think I can do the both?

Ofcourse, why not?

And welcome to JavaRanch!
Piyush Patel
Ranch Hand

Joined: Feb 24, 2009
Posts: 127


Java is Open Source Technology. Its a community process by Sun Micro Systems (now Oracle hopefully continue the Sun's Trend and Style) .
You get all tools for development , Netbeans , Glasfish server , Apache Server , MySql for Free , and ofcource Ranch Family to help you out in Java.
i'm not big fan of MS,
i belive in Human Knowledge belongs to world. Open Source Technology for ALL




 
wood burning stoves
 
subject: Which is better C# or JAVA?