Char (Java)

From Just Solve the File Format Problem
(Difference between revisions)
Jump to: navigation, search
(Created page with "{{FormatInfo | name = char (Java) | formattype = electronic | subcat = Data types | subcat2 = Java data types | subcat3 = | subcat4 ...")
 
 
Line 22: Line 22:
 
{{DISPLAYTITLE:char (Java)}}
 
{{DISPLAYTITLE:char (Java)}}
  
Unlike the '''char''' data types in some other languages which are 8 bits (and are intended to store a single character in a 7 or 8 bit character encoding such as [[ASCII]] or [[ISO 8859-1]]), the char type in the [[Java]] language contains 16 bits. It is designed to accommodate [[Unicode]] characters coded in [[UCS2]], where a large range of characters (the "basic plane") will fit in a single char variable, while some other characters take two char values in an array.
+
Unlike the '''char''' data types in some other languages which are 8 bits (and are intended to store a single character in a 7 or 8 bit character encoding such as [[ASCII]] or [[ISO 8859-1]]), the char type in the [[Java]] language contains 16 bits. It is designed to accommodate [[Unicode]] characters coded in [[UCS2]], where a large range of characters (the "basic plane") will fit in a single char variable, while some other characters take two char values ("surrogate pairs") in an array.
  
 
[[Category:Symbolic data types]]
 
[[Category:Symbolic data types]]
 
[[Category:Enumerable data types]]
 
[[Category:Enumerable data types]]

Latest revision as of 22:18, 29 June 2019

File Format
Name char (Java)
Ontology


Unlike the char data types in some other languages which are 8 bits (and are intended to store a single character in a 7 or 8 bit character encoding such as ASCII or ISO 8859-1), the char type in the Java language contains 16 bits. It is designed to accommodate Unicode characters coded in UCS2, where a large range of characters (the "basic plane") will fit in a single char variable, while some other characters take two char values ("surrogate pairs") in an array.

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox