Jump to content

[POLL]Which is C# most similar to?

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
9 replies to this topic

#1
RobotGymnast

RobotGymnast

    Programmer

  • Members
  • PipPipPipPip
  • 143 posts
Just wondering, post comments below.

#2
jackolantern

jackolantern

    Learning Programmer

  • Members
  • PipPipPip
  • 47 posts
I have to say Java. People will say the syntax most closely resembles C++, but Java does too in a lot of ways. Also, no multiple inheritance, interface programming, etc. C# syntax was modeled after C++, but it's usage and purely OO construct was heavily inspired by Java. It's not what you have, but how you use it, right? So I voted Java.

#3
zeroradius

zeroradius

    Speaks fluent binary

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,406 posts
Yep It most resembles Java. That is what they always taught us at least. I have never done c++ but I have done C# and Java and they are verry simular.
Posted Image

#4
Turk4n

Turk4n

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 3,847 posts
I find java to be in harmony with C# !
Posted Image

#5
Termana

Termana

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 4,057 posts
I think people are not making the distinction between C# and the .NOT .NET Framework. C#, the language itself, is most like C++. The classes provided by the .NOT .NET Framework, are most like Java, but mostly only by name - and thats only really a handful we're talking about.

Interested in participating in community events?
Want to harness your programming skill and turn it into absolute prowess?
Come join our programming events!


#6
Guest_Jordan_*

Guest_Jordan_*
  • Guests
I voted Java. If you can code in C# without using .NET or the emulators (Mono) I'll reconsider voting C++. Here are some reasons:


  • Both Java and C# have their roots in C++ and share features with that language.
  • Both languages compile to an intermediate code rather than pure machine code. Java compiles to what is known as Java Virtual Machine (JVM) bytecode, while C# compiles to Common Intermediate Language, CIL.
  • Java bytecode is executed by an application called the Java virtual machine (JVM). Similarly, compiled C# programs are executed by the Common Language Runtime, or CLR.
  • Exception handling in C# is very similar to Java, with some minor differences
  • Like Java, C# is strongly type checked. The compiler detects where types are used in a way that may cause errors at run time.
  • Like Java, C# provides automatic garbage collection, freeing the programmer from keeping track of allocated resources.
  • Both Java and C# support single inheritance and multiple interface implementations.
Reference: The C# Programming Language for Java Developers

#7
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
I voted Java.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#8
Turk4n

Turk4n

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 3,847 posts

Jordan said:

I voted Java. If you can code in C# without using .NET or the emulators (Mono) I'll reconsider voting C++. Here are some reasons:


  • Both Java and C# have their roots in C++ and share features with that language.
  • Both languages compile to an intermediate code rather than pure machine code. Java compiles to what is known as Java Virtual Machine (JVM) bytecode, while C# compiles to Common Intermediate Language, CIL.
  • Java bytecode is executed by an application called the Java virtual machine (JVM). Similarly, compiled C# programs are executed by the Common Language Runtime, or CLR.
  • Exception handling in C# is very similar to Java, with some minor differences
  • Like Java, C# is strongly type checked. The compiler detects where types are used in a way that may cause errors at run time.
  • Like Java, C# provides automatic garbage collection, freeing the programmer from keeping track of allocated resources.
  • Both Java and C# support single inheritance and multiple interface implementations.
Reference: The C# Programming Language for Java Developers

Wow, alot of information :)
Posted Image

#9
Xav

Xav

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 13,118 posts
Java pretty much is C# without .NET.
Jordan said:

Good members, like yourself, stick around and post for ages to come!
Mr. Xav | Blog | Forums

#10
jackolantern

jackolantern

    Learning Programmer

  • Members
  • PipPipPip
  • 47 posts

Jordan said:

I voted Java. If you can code in C# without using .NET or the emulators (Mono) I'll reconsider voting C++. Here are some reasons:


  • Both Java and C# have their roots in C++ and share features with that language.
  • Both languages compile to an intermediate code rather than pure machine code. Java compiles to what is known as Java Virtual Machine (JVM) bytecode, while C# compiles to Common Intermediate Language, CIL.
  • Java bytecode is executed by an application called the Java virtual machine (JVM). Similarly, compiled C# programs are executed by the Common Language Runtime, or CLR.
  • Exception handling in C# is very similar to Java, with some minor differences
  • Like Java, C# is strongly type checked. The compiler detects where types are used in a way that may cause errors at run time.
  • Like Java, C# provides automatic garbage collection, freeing the programmer from keeping track of allocated resources.
  • Both Java and C# support single inheritance and multiple interface implementations.
Reference: The C# Programming Language for Java Developers

And I think it is worth mentioning again, Java and C# are purely OO. You cannot write anything outside of a class in those two, whereas you can in C++. That really changes a lot of the design process.