Data Types - JAVA & C# Flashcards
Blocks
Also known as compound statement, are marked by delimiting with braces { }.
Boolean
Variable type used to represent a single true or false value. Size of 1 bit.
Byte
A variable type that is a sequence of 8 bits (enough to represent one character of alphanumeric data) processed as a single unit of information, Range [-127,128]
Char
Variable type with a size of 16 bytes whose range is all Unicode characters. It has a minimum value of ‘\u0000’ (or 0) and a maxiumum value of ‘\uffff’ (or 65,534 inclusive)
Double
Variable type of 64 bits and a range of [-1.7E308, 1.7E308]
Float
Variable type of 32 bits and a range of [-3.4E38,3.4E38]
Hexadecimal
These digits operate on a base-16 number These numbers use the letters A, B, C, D, E, and F along with the numbers 0 to 9 to create their 16 different digits, where A represents 10 and F represents 15. In programs written in the Java programming language must be preceded with 0x.
int
Variable type with 32 bits and a range of [-2147483648 to 2147483647] = 4 bytes of storage
Long
Variable type of 64 bits and with a range of [-9223372036854775808, 9223372036854775807]
Short
Variable type with a size of 16 bits and a range [-32768,32767 ]
Statements
smallest executable unit or instruction, each one ends in a semicolon.
Unicode
A standardized 16-bit character set that represents the character sets of most major languages in the world. The letters entered have to be above 192.
Variable Declarations
A statement that typically specifies two things about a variable: The variable’s name and the variable’s data type. Must be done before it can be used in a program.
Variable names
Strings of any length of letters, digits, underscores, and dollar signs that begin with a a letter, underscore, or dollar sign.