• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Which is better C# or JAVA?

 
Ranch Hand
Posts: 598
3
jQuery Google App Engine Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 1970
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 341
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
Ranch Hand
Posts: 1282
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Marshal
Posts: 28226
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Java is better than C# because it runs on my IBM System i and C# doesn't.
 
Ranch Hand
Posts: 3389
Mac MySQL Database Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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!
 
Raghavan Muthu
Ranch Hand
Posts: 3389
Mac MySQL Database Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 598
3
jQuery Google App Engine Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 3389
Mac MySQL Database Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 598
3
jQuery Google App Engine Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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#.
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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?".
 
Rancher
Posts: 4803
7
Mac OS X VI Editor Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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!
 
Ranch Hand
Posts: 127
Android Firefox Browser Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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





 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic