www.pickatutorial.com Computer Tutorials
Top eBooks: C/C++ | C# | Android | Mathematics | Database | Cloud | Graphics | Networking | Oracle | Hardware | AI
Top Tutorials: C/C++ | C#.NET | PHP MySQL | Java | Java Script | jQuery | HTML | xHTML | HTML5 | VB Script| CSS
Lessons C#: Differences with Java Bookmark and Share
Tutorial Home
Lesson 1
Lesson 2
Lesson 3
Lesson 4
Lesson 5
Lesson 6
Lesson 7
Lesson 8
Lesson 9
Lesson 10
Lesson 11
Lesson 12
Lesson 13
Lesson 14
Lesson 15
Lesson 16
Lesson 17
Lesson 18
Lesson 19
Lesson 20
Lesson 21
Lesson 22
Lesson 23
In the previous lesson we saw how Java and C# are similar in many respects. However, there exist some differences between the two, too. Some of the major differences are listed below:
  • C# has more primitive data types than Java and has more extension to the value types.
  • C# supports safer enumeration types whereas Java does not have enumeration types.
  • C# also has support for struct which are light weight objects.
  • Just like C++ and unlike Java, C# has support for operator overloading.
  • C# has the concept of 'delegates' which are type-safe method pointers and are used to implement event-handling.
  • C# supports three types of arrays:
    single dimensional,
    multi-dimensional rectangular,
    and multi-dimensional jagged arrays.
  • C# has restricted use of pointers. In Java there is no concept of pointers.
  • Unlike Java and C++, the 'switch' statements in C# has been changed such that 'fall-through' behavior is disallowed.
  • Unlike Java and C++, C# has support for class 'properties'.
  • Unlike Java and C++, C# has support for nullable primitives.
  • Unlike Java in C# methods can have named, ref and out parameters.
  • C# introduces the concept of indexers, which was not available in C#.

Next >>> Lesson No. 4: Our First C# Program





Home - Advertise - Contact - Disclaimer - About Us
© Since 2006 pickatutorial.com -- All Rights Reserved.