C# and JAVA are the programming languages that have a common root
and this root is C++.
Moreover C# was developed by Microsoft as an alternative to JAVA
for web based programming.
1. C# has more primitive data types than
Java.
2. Arrays are declared differently in
C#.
3. Unlike Java , all C# data types are
objects.
4. C# supports struct type and Java does not.
5. C# provides static constructors for
initialization.
6. Java does not directly support
enumerations.
7. Java does not have any equivalent to
indexers.
8. Catch blocks should be ordered
correctly in Java.
9. There is no labeled break statement
in C# . The goto is used to achieve
this.
10. C# supports another iterative
statement foreach along with the
three(for , while and do while).
No comments:
Post a Comment