Another different between C# Java is, C# support “struct” data type, which is like a downgraded “class” (doesn’t support iherite and finalizer), and important: struct is value not reference.

Like Java the primitive types “int”, “float”, “bool”, “char” are also value, not reference.

A much much more detailed articles: http://www.albahari.com/value%20vs%20reference%20types.html

A little bit consusing, I am still not yet understanding why C# keep “struct”, for compatible with C? If someone know the advantage of using “struct” in C# pls. let me know, thanks.



Leave a Comment