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

Content deleted Content added
SineBot (talk | contribs)
m Signing comment by 87.50.3.197 - "Java unsigned integer type "char"?: new section"
Line 581:
== Java unsigned integer type "char"? ==
 
I reverted an edit claiming that the Java <code>char</code> type is an "unsigned 16 bit integer" type. According to the language spec it is an ''integral type'' which as soon as it is used with a numeric operator (such as bitwise shift, -and and -or ) it gets ''promoted'' to an integer. So the <code>char</code> type is not an integer type, neither formally nor practically. It is a separate integral type which is ''convertible'' to integer but is itself not an integer. Please read chapter 5 of the Java Language Specification if in doubt. <span style="font-size: smaller;" class="autosigned">— Preceding [[Wikipedia:Signatures|unsigned]] comment added by [[Special:Contributions/87.50.3.197|87.50.3.197]] ([[User talk:87.50.3.197|talk]]) 21:23, 12 June 2011 (UTC)</span><!-- Template:UnsignedIP --> <!--Autosigned by SineBot-->