Mind map
Language Fundamentals
Map content
Language Fundamentals
Literals
- When converting from a data type to another, the source code representation used to do so is called literal
- Three types: Primitive types, string, and null
- Primitive Types have four subtypes
- Floating-point Literals
- Has: a whole number part, decimal point, fractional part, and an optional exponent
- Two types
- Float, which is 32 bits in size
- double, which is 64 bits in size
- Two types
- Has: a whole number part, decimal point, fractional part, and an optional exponent
- Integer Literals
- Used to assign values of types byte, short, int, and long
- Never exceed the value the type can withstand
- Used to assign values of types byte, short, int, and long
- Boolean Literals
- Has two values, represented by True and False
- Character Literals
- A Unicode character or escape sequence enclosed in single quotes
- Floating-point Literals
- Primitive Types have four subtypes
- Three types: Primitive types, string, and null
- When converting from a data type to another, the source code representation used to do so is called literal
Separators
- Several characters Java uses as separators
- Parentheses ()
- Used in: method signatures, expressions, narrowing conversions, loops to contain expressions
- Braces {}
- Used in: declaration of types, blocks of statements, array intialization
- Brackets []
- Used in: array declaration, array value dereferencing
- Angle brackets <>
- Used to pass parameter
- Semicolon ;
- Used to terminate statements, used in the FOR statement
- Colon :
- Used in the FOR statement that iterates over an array
- Comma ,
- Used to separate arguments in method declarations
- Period .
- Used to separate package names from sub-packages and type names
- Parentheses ()
- Several characters Java uses as separators
Primitives
- A data type, where there is 8 of them
- byte, short, int, long, float, double represent numbers
- Each is a different size, byte being the smallest
- byte, int, short, and long only hold integers
- Char represents a single character and boolean contains either true or false
- Char can be any character of any language, number, or symbol
- byte, short, int, long, float, double represent numbers
- A data type, where there is 8 of them
Variables
- A data placeholder that provides a reference to an object
- Has an identifier, which can be unlimited in length but: must begin with a Java letter, not be a Java keyword, a boolean literal, a null literal, and unique within its scope
- Identifiers are case sensitive
- Declare by writing type, then the name, plus a semicolon
- Has an identifier, which can be unlimited in length but: must begin with a Java letter, not be a Java keyword, a boolean literal, a null literal, and unique within its scope
- A data placeholder that provides a reference to an object
ASCII and Unicode
- One of the many computer languages available
- Unicode was invented as an attempt to include all characters in all languages into a single set
- Had to resort to 32 bit in order to store all this information, which is too much to process
- Character encoding made it more efficient to store and transmit Unicode
- Had to resort to 32 bit in order to store all this information, which is too much to process
- Unicode was invented as an attempt to include all characters in all languages into a single set
- One of the many computer languages available
Information
- Description
- Mind Map on Language Fundamentals, created by Kevin Benitez on 21/06/2021.
- Created by
- Kevin Benitez
- Views
- 0
- Rating