Talk:Comparison of C Sharp and Java: Difference between revisions

Content deleted Content added
MiszaBot I (talk | contribs)
m Archiving 2 thread(s) (older than 90d) to Talk:Comparison of C Sharp and Java/Archive 3.
Line 69:
Decimal is a fixed-point type. It's the exact opposite of floating point. The only thing they have in common is that they both can have a decimal point in their string representations. <span style="font-size: smaller;" class="autosigned">— Preceding [[Wikipedia:Signatures|unsigned]] comment added by [[Special:Contributions/66.193.1.106|66.193.1.106]] ([[User talk:66.193.1.106|talk]]) 14:15, 7 September 2011 (UTC)</span><!-- Template:Unsigned IP --> <!--Autosigned by SineBot-->
:Decimal is a [[Decimal floating point|floating-point]] type. It's modeled as -1<sup>sign</sup> * coefficient * 10<sup>-exponent</sup>. The exponent term determines where the decimal point will be, hence "floating-point." A [[Fixed-point arithmetic|fixed-point]] value is basically an integer with an assumed radix point at a predefined position. [http://msdn.microsoft.com/en-us/library/system.data.sqltypes.sqldecimal.aspx SqlDecimal] is closer to a fixed-point type, but the scale is still adjustable and it doesn't have the performance benefit that you might expect from a true fixed-point type. [[User:Maghnus|Maghnus]] ([[User talk:Maghnus|talk]]) 12:51, 15 September 2011 (UTC)
 
== Incorrect/Outdate Comparison Chart ==
 
It seems that the comparison chart has some mistakes or it's outdated, it needs a java expert to revise it. I think java has some features but in the article it's said it doesn't such as : Implicit conversions,Explicit conversions, Events, Rectangular (multidimensional) arrays, Unified arrays and collections, ...
 
Also it seems that features of C# is listed, then it compared to java, which is a completely wrong approach since in many cases java has a better and more smart workaround for a problem without needing to have a feature for it. For example java never needs Explicit interface implementation, since it has co-variant return types.