CS110: Programming Language I - Lecture 2: Java Basics 1

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

1/30

flashcard set

Earn XP

Description and Tags

Vocabulary practice flashcards covering fundamental concepts, syntax, data types, identifiers, variables, constants, type casting, and output formatting from CS110 Lecture 2: Java Basics 1.

Last updated 10:13 PM on 10/8/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

31 Terms

1
New cards

.java

The file extension required for storing all Java source code programs.

2
New cards

Java Bytecode (.class file)

The intermediate executable file generated by the Java Compiler from source code, which is executed by the Java Virtual Machine (JVM).

3
New cards

Java Virtual Machine (JVM)

The software component that executes compiled Java bytecode (.class files) alongside library code to run the application and display output.

4
New cards

Java Compilation and Execution Process

The sequence in which a Java source code file (.java) is compiled by the Java Compiler into bytecode (.class), which is subsequently executed by the JVM alongside library code to display results on the console.

<p>The sequence in which a Java source code file (.java) is compiled by the Java Compiler into bytecode (.class), which is subsequently executed by the JVM alongside library code to display results on the console.</p>
5
New cards

Class

A primary construct in Java where every program must contain at least one; by convention, class names start with an uppercase letter.

6
New cards

main Method

The entry and starting point of execution for every Java application, defined specifically as public static void main(String[] args).

7
New cards

Statement

A command or instruction representing an action or sequence of actions in Java; every statement must terminate with a semicolon (;).

8
New cards

Block

A program structure formed by a pair of braces ({ }) that groups together related components and statements.

9
New cards

Comment

Non-executable text ignored by the compiler, used to document programs and enhance readability. Includes single-line comments (//) and multi-line comments (/* */).

10
New cards

Reserved Words (Keywords)

Words that possess a defined, specific meaning to the Java compiler, always spelled in lowercase letters and prohibited from being used as identifiers (e.g., class, public, static, void).

11
New cards

Whitespace

Any spacing in code without executable statements—such as spaces between words, blank lines, and indentation—that keeps code organized without affecting how it runs.

12
New cards

System.out.println()

A printing method that outputs a given String and automatically advances the cursor to the beginning of the next line; it can execute without arguments.

13
New cards

System.out.print()

A printing method that outputs text while leaving the cursor on the same line; it requires arguments, otherwise a syntax error occurs.

14
New cards

Escape Sequence

A character preceded by a backslash () that conveys a specialized formatting instruction to the compiler (e.g., \n for new line, \t for tab, \" for double quotes).

15
New cards

Identifier

A sequence of characters consisting only of letters, digits, underscores (_), and dollar signs ($) used to name classes, methods, or variables; it cannot start with a digit, contain spaces, or match a reserved keyword.

16
New cards

Case Sensitivity

The rule in Java specifying that uppercase and lowercase letters are treated as distinct, making names such as a1 and A1 completely different identifiers.

17
New cards

Variable

A named container allocated in memory for holding changeable data values of a specified type.

18
New cards

Initialization

The act of assigning an initial value to a variable, either simultaneously during declaration or in a subsequent statement prior to use.

19
New cards

String Concatenation

An operation using the plus (+) operator to join multiple strings, characters, or numerical values together into a single unified String.

20
New cards

Constant

An identifier declared with the reserved word final that holds a permanent, unchangeable value throughout the program's execution (e.g., final double PI = 3.14159265;).

21
New cards

Type Casting

The conversion of a value from one data type to another; it can be implicit (automatic) or explicit (syntax-driven, where fractional parts of floating-point numbers are truncated).

22
New cards

System.out.printf()

A formatted printing method that outputs data based on a format string containing fixed text and format specifiers, paired with a comma-separated list of items.

23
New cards

Format Specifier

A placeholder in a printf format string beginning with a percent sign (%) that dictates how an argument value is rendered (e.g., %d for integers, %f for floating-point, %s for String).

24
New cards

byte Data Type

An integer primitive type with a size of 8 bits8\text{ bits}, holding values from −128-128 (−27-2^{7}) to +127+127 (27−12^{7} - 1).

25
New cards

short Data Type

An integer primitive type with a size of 16 bits16\text{ bits}, holding values from −32,768-32,768 (−215-2^{15}) to +32,767+32,767 (215−12^{15} - 1).

26
New cards

int Data Type

An integer primitive type with a size of 32 bits32\text{ bits}, holding values from −2,147,483,648-2,147,483,648 (−231-2^{31}) to +2,147,483,648+2,147,483,648 (231−12^{31} - 1).

27
New cards

long Data Type

An integer primitive type with a size of 64 bits64\text{ bits}, holding values from −9,223,372,036,854,775,808-9,223,372,036,854,775,808 (−263-2^{63}) to +9,223,372,036,854,775,808+9,223,372,036,854,775,808 (263−12^{63} - 1).

28
New cards

float Data Type

A single-precision floating-point primitive type with a size of 32 bits32\text{ bits}, holding values from −3.4×1038-3.4 \times 10^{38} to +3.4×1038+3.4 \times 10^{38} with up to 77 significant digits after the decimal point.

29
New cards

double Data Type

A double-precision floating-point primitive type with a size of 64 bits64\text{ bits}, holding values from −1.7×10308-1.7 \times 10^{308} to +1.7×10308+1.7 \times 10^{308} with up to 1515 significant digits after the decimal point.

30
New cards

boolean Data Type

A 1-bit1\text{-bit} primitive data type used to evaluate and store logical states consisting strictly of true or false.

31
New cards

char Data Type

A 16-bit16\text{-bit} primitive data type that stores the Unicode of a single character enclosed in single quotes, ranging in value from 00 to 65,53565,535 (216−12^{16} - 1).