- 1
Does c# is ACTUALLY faster than java in any way?
8 Respuestas
+ 1
It probably is, and it has better performances, since c# gets compiled to machine code, and java code runs in java virtual machine
+ 1
Yep , I do know that both are interpreted languages
+ 1
Wait NET 6 released?
+ 1
PAT engginier yeah. NET 6 & C# 10 released on November 8th.
These brought out a tonne of new features.
+ 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
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.
0
If you are a beginner, then it shouldn't matter coz it's very minimal..