Core Java Practice Flashcards

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

1/19

flashcard set

Earn XP

Description and Tags

Fill-in-the-blank review flashcards based on the Core Java lecture notes, covering core concepts, memory, OOP, exceptions, and Maven.

Last updated 6:54 PM on 9/16/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

20 Terms

1
New cards

In the Java execution pipeline, Java source code is compiled into bytecode before being executed by the __________.

JVM (Java Virtual Machine)

2
New cards

The JDK contains tools needed to develop Java programs (including the compiler), whereas the JRE consists of the JVM plus __________ needed to run Java applications.

libraries

3
New cards

In Windows environment variable setup, the __________ variable points to the root directory location of the installed JDK.

JAVA_HOME

4
New cards

Introduced in JDK 9, __________ is an interactive Read-Evaluate-Print Loop (REPL) tool for prototyping and learning Java.

JShell

5
New cards
<p>According to the Java primitive data types table, the range of the <code>byte</code> type is __________.</p>

According to the Java primitive data types table, the range of the byte type is __________.

-128 to 127

6
New cards

Variables declared with the __________ modifier cannot have their value changed once they are initialized.

final

7
New cards

When formatting text using System.out.printf(), the specifier used to represent integers is __________.

%d

8
New cards
<p>In the Java arithmetic operators table, the <code>%</code> symbol represents the __________ operator, which returns the remainder of a division.</p>

In the Java arithmetic operators table, the % symbol represents the __________ operator, which returns the remainder of a division.

Modulus

9
New cards

Unlike StringBuilder, the __________ class performs mutable string operations and is thread-safe.

StringBuffer

10
New cards
<p>In Java memory management, method calls and local variables are stored on the Stack, while instantiated objects and the String Pool are stored on the __________.</p>

In Java memory management, method calls and local variables are stored on the Stack, while instantiated objects and the String Pool are stored on the __________.

Heap

11
New cards
<p>The built-in Java package that provides core classes and is automatically imported into every Java program is __________.</p>

The built-in Java package that provides core classes and is automatically imported into every Java program is __________.

java.lang

12
New cards

The __________ access modifier is the most restrictive and makes members accessible only within their declaring class.

private

13
New cards

Members declared with the __________ keyword belong to the class itself rather than to individual instances.

static

14
New cards
<p>According to the Scanner methods reference, the method used to take an entire line of input as a String is __________.</p>

According to the Scanner methods reference, the method used to take an entire line of input as a String is __________.

nextLine()

15
New cards

The OOP pillar that hides an object's internal fields and restricts direct access using getters and setters is __________.

Encapsulation

16
New cards

Java supports single, multilevel, and hierarchical inheritance, but does NOT support __________ class inheritance.

multiple

17
New cards

Declaring multiple methods in the same class with the same name but different parameter lists is known as Method __________.

Overloading

18
New cards
<p>In the exception hierarchy diagram, subclasses of <code>RuntimeException</code> are classified as __________ exceptions.</p>

In the exception hierarchy diagram, subclasses of RuntimeException are classified as __________ exceptions.

unchecked

19
New cards

In a Maven pom.xml file, the combination of groupId, artifactId, and version is called the __________.

artifact coordinates

20
New cards

The Java Reflection API, which allows programs to examine and manipulate their own structure at runtime, is found in the __________ package.

java.lang.reflect