1/11
Vocabulary flashcards covering core Java concepts including syntax, identifiers, comments, primitive data types, Strings, and memory models for reference data types.
System.out.println
A method that prints a value to the output and starts a new line.
\n
A character sequence that creates a new line and makes the code jump to the line below.
Java File Naming Rule
The requirement that the file name must match the public class name.
Variable Declaration
Specifying a data type to create a new variable; omitting the data type means modifying an existing variable.
Camel Case
A naming style for identifiers where the first letter is lowercase and each subsequent word is capitalized.
Legal Identifiers
Names composed of any number of letters (a-z, A-Z), digits (0-9), dollar signs (),orunderscores(_$$) that cannot start with a digit, contain spaces, or use Java reserved words.
Java Reserved Words
Specific keywords in Java, such as public, int, class, and void, that cannot be used as variable names.
Single-line Comment (//)
Syntax that comments out all code and text from // to the end of the line.
Multi-line Comment (/* */)
Syntax that comments out all content enclosed between /* and */.
char
A primitive data type used to store a single character.
String
An object composed of char primitives that is used to store more than 1 character.
Reference Data Type
A data type whose name starts with a capitalized letter that stores an object in memory and holds a reference (address) to that object in the variable rather than the object itself directly.