+ 3
What is different between C# & Java ???
2 Answers
0
Both have a lot of similarities. Both languages are interpreted in a byte code (Java: class data, C#: IL data) which is JIT-compiled (Just-in-time) by a virtual mashine (Java: JVM, C#: CLR) to mashine code. A big diffrence is that c# relies on the .NET Framework, which is Windows only. Microsoft releases small parts of the frameworks for other platforms, known as .NET Core. Java relies on the JRE (Java Runtime Environment) which is open-source and can be compiled on almost all platforms. Despite Java and C# have a C-like-synthax, C# is a more modern language with features like the var keyword or no force to use try/catch.
- 1
even though I am not that much into both languages, I believe one of the most important differences is the fact that java runs inside a virtual machine, which allows it to work on any OS.