int Data Type
Positive integers do not have to have a + sign in front of them. No commas are used within an integer.
char Data Type
The char data type is used to represent single characters such as letters, digits, and special symbols. It can represent any key on your keyboard. Each character represented is enclosed within single quotation marks. Only one symbol can be placed between the single quotation marks.
Java uses the Unicode character set, which contains 65536 values numbered 0 to 65535. Each of the 65536 values of the Unicode character set represents a different character. Each character has a predefined ordering, which is called acollating sequence, in the set. This is used when you compare characters
No comments:
Post a Comment