Mapa mental
Language Fundamentals
Conteúdo do mapa
Language Fundamentals
ASCII and Unicode
- ASCII: has 128 characters
- more efficient
- Unicode: has 256 characters
- not as efficient
- Separators
- ()parantheses, {}braces, []brackets, <>angle brackets, ;semicolon, :colon, ,comma, .period
- ASCII: has 128 characters
Primitives
- a data type
- there are 8 primitive types, each with a specific format and size
- byte, short, int, long, float, double, char, boolean
- int is an placeholder
Variables
- data placeholders
- two data types: reference types and primitive types
- reference types: provides a reference to an object
- primitive types: holds a primitive
- has a name/identifier: this must be unique
Constants
- declare by the word "final"
- constant names are in all CAPS and words separated by underscores
- ex) final int ROW_COUNT = 50;
Literals
- when assigning number 2 to an int or character 'c' to a char
- need to write the value representation in a format that the Java complier understands
- three types of literals: primitive types, string literals, and null literal
- primitive types have 4 subtypes: integer literals, floating point literals, character literals, and boolean literals
- boolean literals: true and false
- character literals: a Unicode character or an escape sequence in single quotes ex) "\t"
- floating point literals: a whole number part, a decimal point, a fractional part, an optional exponent
- integer literals: assign values to variables of types byte, short, int, and long
- primitive types have 4 subtypes: integer literals, floating point literals, character literals, and boolean literals
- when assigning number 2 to an int or character 'c' to a char
Informações
- Descrição
- Mapa Mental sobre Language Fundamentals, criado por Sunny Baik em 21-06-2020.
- Criado por
- Sunny Baik
- Visualizações
- 0
- Avaliação