Java Syntax, Variables, Identifiers, and Reference Types

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/11

flashcard set

Earn XP

Description and Tags

Vocabulary flashcards covering core Java concepts including syntax, identifiers, comments, primitive data types, Strings, and memory models for reference data types.

12 Terms

1
New cards

System.out.println

A method that prints a value to the output and starts a new line.

2
New cards

\n

A character sequence that creates a new line and makes the code jump to the line below.

3
New cards

Java File Naming Rule

The requirement that the file name must match the public class name.

4
New cards

Variable Declaration

Specifying a data type to create a new variable; omitting the data type means modifying an existing variable.

5
New cards

Camel Case

A naming style for identifiers where the first letter is lowercase and each subsequent word is capitalized.

6
New cards

Legal Identifiers

Names composed of any number of letters (a-za\text{-}z, A-ZA\text{-}Z), digits (0-90\text{-}9), dollar signs (),orunderscores(), or underscores (_$$) that cannot start with a digit, contain spaces, or use Java reserved words.

7
New cards

Java Reserved Words

Specific keywords in Java, such as public, int, class, and void, that cannot be used as variable names.

8
New cards

Single-line Comment (//)

Syntax that comments out all code and text from // to the end of the line.

9
New cards

Multi-line Comment (/* */)

Syntax that comments out all content enclosed between /* and */.

10
New cards

char

A primitive data type used to store a single character.

11
New cards

String

An object composed of char primitives that is used to store more than 1 character.

12
New cards

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.