- 1

Does c# is ACTUALLY faster than java in any way?

22nd Nov 2021, 9:28 AM
PAT engginier
PAT engginier - avatar
8 Antworten
+ 1
It probably is, and it has better performances, since c# gets compiled to machine code, and java code runs in java virtual machine
22nd Nov 2021, 10:56 AM
2004
2004 - avatar
+ 1
Yep , I do know that both are interpreted languages
23rd Nov 2021, 10:35 AM
PAT engginier
PAT engginier - avatar
+ 1
Wait NET 6 released?
23rd Nov 2021, 10:36 AM
PAT engginier
PAT engginier - avatar
+ 1
PAT engginier yeah. NET 6 & C# 10 released on November 8th. These brought out a tonne of new features.
24th Nov 2021, 4:59 AM
Adam McGregor
+ 1
McQuei to be honest, im asking this becuase i saw how minecraft STILL runs like garbage in the newer versions , and I thaught , you know what , is not java's fault
24th Nov 2021, 7:24 AM
PAT engginier
PAT engginier - avatar
0
Please note C# does not compile to machine code it to use an Intermediate Language (IL) like Java. Java runs on the Java Virtual Machine (JVM) runtime. C# runs on the Common Language Runtime (CLR) which supports many .NET languages. Another thing to note is that they can be complied differently depending upon settings which can affect performance. So which is faster? Well both are multi-platform so they have differing implementations to support the host OS. It would be recommended that you test this based upon your machine. Also note that each environment has a start-up cost because they are JIT complied, I would recommend trying to eliminate this variable to avoid potentially skewed results. Please consider language versions also. .NET 6 just released with performance improvements which will wipe the floor with the .NET framework which is obsolete. (any .NET core would) Final thing is that the base of the languages are symatiacally similar so its easy for simple programs to switch back a forth.
23rd Nov 2021, 4:51 AM
Adam McGregor
0
If you are a beginner, then it shouldn't matter coz it's very minimal..
23rd Nov 2021, 12:59 PM
McQuei
McQuei - avatar