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

Content deleted Content added
No edit summary
Tbjablin (talk | contribs)
No edit summary
Line 1:
Just throwing a question out there: should we mention that C# allows for strings to be used in switch statements? It is a minor feature, but it is a difference. Does Java have this yet? [[User:DoomBringer|DoomBringer]] 08:12, 8 May 2005 (UTC)
 
How does Java have a simpler language? The CLR has some JIT time optimizations as well as runtiem optimizations. Java and C# run at about the same speed really. It might not be true that Java is faster.
 
Line 140 ⟶ 138:
 
I think the criticism is that determining which method is actually called at run-time more complicated, and can incur a performance hit. Check this out [[http://blog.monstuff.com/archives/000037.html#more]], but I guess all OO features are more complicated than just calling static function. [[User:Tbjablin|Tbjablin]] 13:16, 25 Apr 2005 (UTC)
 
== Switching Strings ==
Just throwing a question out there: should we mention that C# allows for strings to be used in switch statements? It is a minor feature, but it is a difference. Does Java have this yet? [[User:DoomBringer|DoomBringer]] 08:12, 8 May 2005 (UTC)
 
:Java does not support switching on strings. It seems like a minor feature to me though. Also, does C# support just switching on Strings, or switching on all Objects? [[User:Tbjablin|Tbjablin]] 13:26, 8 May 2005 (UTC)