Details, Explanation and Meaning About Comparison of C Sharp to Java

Comparison of C Sharp to Java Guide, Meaning , Facts, Information and Description

C# programming language & Java programming language.


This is a comparison of the C# programming language to the Java programming language.

Table of contents
1 Similarities
2 Advantages of C#
3 Disadvantages of C#
4 Advantages of Java
5 Disadvantages of Java
6 Differences between the languages
7 External links

Similarities

Advantages of C#

  • Tied more closely to the Windows operating system, making for better performance in OS-specific tasks such as user interface.
  • The .NET framework already supports a much larger number of languages, making for better cross-language compatibility.
  • Allows the use of pointers in a relatively safe way, and certain language features ensure this functionality is not misused accidentally.
  • Better support for arithmetic by including more primitive types and functionality to catch arithmetic exceptions.
  • Includes a large number of notational conveniences over Java, many of which, such as operator overloading and user-defined casts, are already familiar to the large community of C++ programmers.
  • Boxing and unboxing of value types, allowing numbers to be handled as an object.
  • Includes an enhanced for loop. (Java will include this feature in version 1.5)
  • C# is defined by ECMA and ISO standards, whereas Java is proprietary.

Disadvantages of C#

Advantages of Java

Disadvantages of Java

Differences between the languages

  • C# does not include checked exceptions. Some would argue that checked exceptions are very helpful for good programming practice. Others argue that they were to some extent an experiment in Java and that they haven't been shown to be worthwhile.
  • C#'s namespaces are more similar to those in C++. Unlike Java, the namespace does not specify the location of the source file.
  • C# includes delegates, whereas Java does not. Some argue that delegates are extremely useful, but others point out that their inclusion complicates the method invocation model.
  • Java requires that a source file name must match the only public class inside it, while C# allows multiple public classes in the same file.

See also:
Comparison of Java to C++

External links


This is an Article on Comparison of C Sharp to Java. Page Contains Information, Facts Details or Explanation Guide About Comparison of C Sharp to Java


Google
 
Web www.E-paranoids.com

Search Anything