Mapa mental
Java Language Fundamentals
Contenido del mapa
Java Language Fundamentals
Character Sets
- ASCII
- American Standard Code for Information Interchange
- 7 bits = 128 characters originally
- Extended to 8 bits = 256 characters
- American Standard Code for Information Interchange
- Unicode
- Originally 16 bits = 65,000 characters
- Extended to 32 bits
- Character Encoding
- reduces size of commonly used Unicode characters
- UTF-8 transforms Unicode characters to various lengths, down to 8 bits
- UTF-16 is used for 16 bit and 32 bit characters, UTF-32 for 32 bit characters
- ASCII
Seperators
- ( )
- { }
- [ ]
- < >
- ;
- :
- ,
- .
Primitive Data Types
- floating point
- float - 32 bit
- double - 32 bit
- integer-type
- byte - 8 bit
- short - 16 bit
- int - 32 bit
- long - 64 bit
- char - Unicode
- boolean
- floating point
Variables
- reference type - holds object
- primitive type - holds a primitive
- must have a name (identifier)
- cannot start with numbers
- case-sensitive
- Sun's naming convention (i.e. myStudent)
- declaration
- value can also be assigned when declared
Java stores integers in binary
constants
- declared with "final" keyword
- cannot be changed
- name is upper case
literals
- source code representation of value
- integers
- specify base system if not in decimal
- floating point
- i.e. 2e+1f
- boolean
- i.e. true
- character
- i.e. 'A'
- escape sequences
- i.e. '\b' = backspace
Información
- Descripción
- Mapa Mental sobre Java Language Fundamentals, creado por Ryan Self el 05/10/2020.
- Creado por
- Ryan Self
- Visitas
- 0
- Valoración