Mindmap
Language Fundamentals
Inhalt der Mindmap
Language Fundamentals
Encoding sets
Primitives
- byte, short, int, long, float, double, (and boolean)
- represent numbers
- byte, short, int, long, float, double, (and boolean)
Variables
- reference and primitive types
- the identifier must not be a key word like boolean or null
- reference and primitive types
Constants
- you declare by using the keyword: final
Literals
- assigning values to our variables
- three types: primitive types, string literals, and null literal
- four subtypes: integer literals, floating-point literals, character literals, and boolean literals
- integer literals: written in decimal, octal, or hexidecimal
- octal ex of 567: 0567
- floating-point literals: float or double
- boolean literals: true or false
- character literals: enclosed in single quotes ex: 'a'
- has escape sequences ex: '\"' double quote
- integer literals: written in decimal, octal, or hexidecimal
- four subtypes: integer literals, floating-point literals, character literals, and boolean literals
- three types: primitive types, string literals, and null literal
- assigning values to our variables
Primitive Conversions
- conversion of variables from same and different types
- two kinds widening and narrowing conversions
- widening: from a type to another type whos is the same or larger than the first like int to long
- byte to short, int, long, float, or double
- char to int, long, float, or double
- and follow the line for the rest of the examples
- char to int, long, float, or double
- byte to short, int, long, float, or double
- narrowing:from a type to another type whos is smaller than the first
- short to byte or char
- char to byte or short
- int to byte, short or char
- long to byte, short or char
- float to byte, short, char, int, or long
- double to byte, short, char, int, long, or float
- float to byte, short, char, int, or long
- long to byte, short or char
- int to byte, short or char
- char to byte or short
- short to byte or char
- widening: from a type to another type whos is the same or larger than the first like int to long
Operators
Seperators
- Parentheses(), Braces {}, Brackets[], Angle brackets<>, Semicolon;, Colon:, Comma,, Period.,
Sun's Naming Convention for Variables
- userName, count, firstTimeLogin
Informationen
- Beschreibung
- Mindmap am Language Fundamentals, erstellt von Anastasia Cashman am 24/06/2021.
- Erstellt von
- Anastasia Cashman
- Aufrufe
- 0
- Bewertung