How similar is java to C# | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

How similar is java to C#

If i want to learn both which one is best to start with

10th Aug 2019, 8:44 AM
Bhekinkosi Kubheka
Bhekinkosi Kubheka - avatar
4 Answers
+ 8
Java supports omission checks to handle and trap errors.C# does not support omission checks. This is where C# lacks behind Java due to the fact that Checked exceptions are good for programming.Java has no primitive unsigned numeric types. This is what makes Java unsuitable for programming of low level.Namespace in Java does not tell the source file location.C# Namespaces are pretty much similar to namespaces of C++.C# contains delegates. On the other hand, Java does not contain delegates.Java only allows source files that have a public class inside it.C# requires a source file that has multiple public classes.C# vs Java Performance both have a different take on polymorphism. Java allows polymorphism by default. Whereas, C# does not.C# lets the programmer use pointers.The API of C# is completely handled by Microsoft.Java API is controlled by an open community process.C# uses non-virtual methods on its own. Whereas, Java uses virtual methods by default. C# includes operator overloading.Java does not allow this.
10th Aug 2019, 10:39 AM
Shadow Ninja[#Inactive]
Shadow Ninja[#Inactive] - avatar
+ 7
In my personal opinion java
10th Aug 2019, 9:17 AM
Sumit Programmer😎😎
Sumit Programmer😎😎 - avatar
+ 3
Convince me why
10th Aug 2019, 9:30 AM
Bhekinkosi Kubheka
Bhekinkosi Kubheka - avatar
- 1
C# is the little brother of Java. They are very similar in syntax and capabilities. Even if you read comparisons on various sites, always assume a bias and take everything with careful suspicion :) Both languages evolve continuously, introducing new features and sometimes taking over ideas from each other and particularly from functional programming concepts. Java has a bigger developer community and it is open source and platform-independent. C# is a Microsoft creation and it works best in Microsoft's own software ecosystem, such as Windows, Azure, MS SQL server. I suggest to start with Java unless you have a strong reason to favor Microsoft products.
10th Aug 2019, 12:47 PM
Tibor Santa
Tibor Santa - avatar