Jump to content

C# vs Java

- - - - -

  • Please log in to reply
8 replies to this topic

#1
Leind

Leind

    Newbie

  • Members
  • Pip
  • 2 posts
Hello
Im looking for a good second language (:
First I was going with Java, but then i read interesting things about C#
My first language is C++
Thanks c:

#2
mebob

mebob

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 490 posts
C# is really only for Windows (unless you consider Mono, but Mono is pretty incomplete currently), while Java is cross-platform. Plus, you can make Java applets with Java, obviously.
Latinamne loqueris?

#3
Leind

Leind

    Newbie

  • Members
  • Pip
  • 2 posts
Nice thanks, think im going with java :)
And which one you would recommend if the multiplatform wasn't a problem?

#4
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others
It depends a lot on what I'm doing. If I'm doing server-side scripting, I'd probably use C# (ASP.NET). If I'm doing application development on Windows, I'd lean towards C#, because of Visual Studio (very easy to work with). With that said, two of my favorite tools are jEdit and SQuirreL SQL Client, both of which are written in Java.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#5
RhetoricalRuvim

RhetoricalRuvim

    JavaScript Programmer

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,254 posts
  • Location:C:\Countries\US
I wonder if JavaScript is anywhere near these things.

#6
mebob

mebob

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 490 posts
I agree with WingedPanther that if you plan on exclusively programming for Windows, C# is probably a good choice. Visual Studio does make it a LOT easier. However, there are somewhat comparable tools for Java (none quite as good, but still really good).
Latinamne loqueris?

#7
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others

RhetoricalRuvim said:

I wonder if JavaScript is anywhere near these things.

JavaScript is a very different animal from C#/Java. First, C# and Java are both pure OOP languages, though C# is a little loose in that with some of its features. JavaScript is a prototype language. C#/Java are compiled to bytecode for execution by .NET runtime or JRE, respectively. JavaScript is an interpreted language.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#8
RhetoricalRuvim

RhetoricalRuvim

    JavaScript Programmer

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,254 posts
  • Location:C:\Countries\US
How about interpreting JavaScript within a Java environment?

#9
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others
If you have a Java interpreter for JavaScript, you are still interpreting JavaScript, you're just using a Java app running under the JRE to do it. Unless there's a JavaScript compiler I don't know about.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users