-
i know c and c++but i dont know c# and java.can any body explain what is the difference between java and c#.which one is best?0
-
Member • Oct 1, 2012
you will get difference from many sources....see this#-Link-Snipped-#
As you know c,c++ ..you can learn both easily....Are you sure? This action cannot be undone. -
Administrator • Oct 1, 2012
Which is better - well that can't be answered because it depends on the context. You'll have to define which parameters you wish to compare these two programming languages on so that we can draw comparisons and conclusions.Are you sure? This action cannot be undone. -
Member • Mar 29, 2013
Java class file run in all platform like windows , linux etc...!! bt c++ & c not like that...!!!Are you sure? This action cannot be undone. -
Member • Mar 31, 2013
Java is open source and C# isn't...Are you sure? This action cannot be undone. -
Member • Mar 31, 2013
How can we say that a specific programming language is open source or closed source ?shibi rajJava is open source and C# isn't...
I think its implementation decides whether it's Opensource or opposite.Are you sure? This action cannot be undone. -
Member • Mar 31, 2013
Yes. That's right. I exactly meant about the licence...
Java it's free and C# we have to pay money , right..?Are you sure? This action cannot be undone. -
Member • Mar 31, 2013
C# is not, strictly speaking, close to C/C++ because it uses Common Language Runtime (CLR) developed by MS. Hence, it's not open source either.Are you sure? This action cannot be undone. -
Member • Mar 31, 2013
Java have lot of packages so we can use manythings...!! bt c & c++ not like thatAre you sure? This action cannot be undone. -
Member • Mar 31, 2013
Ever heard of shared libraries in c?Ganesh MSDJava have lot of packages so we can use manythings...!! bt c & c++ not like thatAre you sure? This action cannot be undone. -
Administrator • Apr 6, 2013
There is a wiki page for answering just this.
<a href="https://en.wikipedia.org/wiki/Comparison_of_C_Sharp_and_Java" target="_blank" rel="noopener noreferrer">Comparison Of C Sharp And Java</a>
Another good read can be: #-Link-Snipped-#
You guys can go ahead and read those two pages and thank me later here. ☕
Features present in C#, but not in Java
- C# includes more primitive types and the functionality to catch arithmetic exceptions.
- Event handling is a "first class citizen"âit is part of the language itself.
- Allows the definition of "structs", which are similar to classes but may be allocated on the stack (unlike instances of classes in C# and Java).
- C# implements properties as part of the language syntax.
- C# allows switch statements to operate on strings.
- C# allows anonymous methods providing closure functionality.
- C# has support for output parameters, aiding in the return of multiple values, a feature shared by C++ and SQL.
- C# has the ability to alias namespaces.
- C# provides integration with COM.
- Following the example of C and C++, C# allows call by reference for primitive and reference types.
- Java's strictfp keyword guarantees that the result of floating point operations remain the same across platforms.
- Java supports checked exceptions for better enforcement of error trapping and handling.
Are you sure? This action cannot be undone.