+ 6

The difference between C# and Java: Answered

This question is asked in the Q&A everyday. What is the difference between C# and Java? A few common factors: -Simplicity: Java and C# are both made to be simple and easy to learn. -Free of costs! -Object Oriontated -They both support network- and Client-Server- support! -Both supports GUI applications -Garbage collection: They are made to avoid Memory leaks and make data sharing easier -They support Exception handling See Answers for Difference

17th Jun 2017, 4:23 PM
Limitless
Limitless - avatar
3 Réponses
+ 5
Multi-Platforms: Java is said to be THE multi-platform programming language because Java can be installed on any platform from Linux, iOS, Windows, OS X, android, etc. But in reality C# also supports multi-platform programming. C# is also compiled to an intermediate language called MSIL. Which is interpreted and Compiled on run time, it's called a Just-in-Time compiler. But Java is the "winner" because it can run on more Operating Systems than C# can. Syntax and Coding: C# and Java has a similar Syntax so close that in my opinion it's almost the same language. But what devides the two is the way the Programmer can use them. C# is known to be the more complex language, it supports a lot more default codes that Java doesn't have. Example the Operator code in C#. It can override function like Plus, Minus, Multiply, Devide, etc. This makes it a lot easier for programmers to format their code to make it more readable. Java has a lot more libraries that C# doesn't have which makes it easier for programmers to use built-in methods and functions. This is a lot more powerful than C#, where you'll need to program your own libraries, or download them, to even get close to the Java libraries. Each language has it's Pro's and Con's. I barely touched the surface, and both languages has a ton of characteristics that the other doesn't have. Sources: -https://msdn.microsoft.com/en-us/library/ms836794.aspx -SoloLearn
17th Jun 2017, 4:23 PM
Limitless
Limitless - avatar
+ 4
• C# supports static classes , Java doesn't • C# has "const" data-type for constants , while Java uses the "final" keyword
27th Feb 2018, 12:47 AM
Utkαrsh
Utkαrsh - avatar
+ 2
just started out with C# and vs 2013 express (Thanks to Chirag for the link)..got to say vs throws eclipse out of the window for ease of use and it blends so easily with C#..
17th Jun 2017, 5:11 PM
suryapoojary
suryapoojary - avatar