Java Basics Vocabulary (Video Notes)

0.0(0)
studied byStudied by 0 people
GameKnowt Play
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/38

flashcard set

Earn XP

Description and Tags

Vocabulary flashcards covering Java basics, data types, packaging, classes, methods, GUI tools, strings, casting, and wrapper classes.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

39 Terms

1
New cards

Package

A collection of related classes; a sub-directory in your project; the package name must match its path in the src folder.

2
New cards

Class

A blueprint for objects that defines their data (fields) and behavior (methods).

3
New cards

Public class

A class declared public; only one public class allowed per source file, and its name must match the filename.

4
New cards

.class file

A compiled Java file containing bytecode; not human-readable.

5
New cards

Field

Variables inside a class that hold the object's data.

6
New cards

Method

Functions that operate on the data of an object.

7
New cards

Static field

A field that belongs to the class itself, not to any particular object instance.

8
New cards

Main method

The entry point of a Java program: public static void main(String[] args).

9
New cards

Primitive Data Types

Java’s built-in types, including int, double, boolean, char, byte, short, long, and float.

10
New cards

int

A 32-bit signed integer data type.

11
New cards

double

A 64-bit floating-point data type with double precision; one of the three emphasized on the AP exam (along with int and boolean).

12
New cards

boolean

A true/false data type.

13
New cards

char

Represents a single Unicode character.

14
New cards

float

A 32-bit floating-point data type; precision is half that of double.

15
New cards

byte

An 8-bit signed integer.

16
New cards

short

A 16-bit signed integer (2 bytes).

17
New cards

long

A 64-bit signed integer (8 bytes).

18
New cards

modulo ( %)

The modulo operation; returns the remainder after division.

19
New cards

Casting

Explicit conversion from one primitive type to another (e.g., (int) price).

20
New cards

Floor

Rounding down to the nearest integer; casting a positive double to int yields the floor value.

21
New cards

Integer.parseInt

Static method in Integer that converts a String to an int (example of a wrapper class utility).

22
New cards

Wrapper Classes

Classes that wrap primitive types as objects: Integer, Double, Character.

23
New cards

Integer

Wrapper class for the int primitive; includes methods like parseInt.

24
New cards

String

A class representing a sequence of characters; strings are objects, not primitive types.

25
New cards

String.equals

Compares two strings for exact, case-sensitive equality.

26
New cards

String.equalsIgnoreCase

Compares two strings for equality ignoring case differences.

27
New cards

String.length

Returns the number of characters in the string.

28
New cards

String.toUpperCase

Returns a new string with all characters converted to upper case.

29
New cards

String.toLowerCase

Returns a new string with all characters converted to lower case.

30
New cards

String.indexOf

Returns the index of the first occurrence of a character or substring, or -1 if not found.

31
New cards

String.substring

Returns a portion of the string between specified start and end indices.

32
New cards

IDE

Integrated Development Environment; software for writing, compiling, and debugging code.

33
New cards

JVM

Java Virtual Machine; runs Java bytecode.

34
New cards

Swing

Classic Java GUI toolkit; part of the javax.swing package.

35
New cards

JavaFX

Modern GUI toolkit designed as a replacement for Swing; not automatically included with the JDK since version 11.

36
New cards

package path rule

The package name must correspond to its directory path under the src folder.

37
New cards

Public

Access modifier indicating visibility; in Java, a file can have one public class whose name matches the filename.

38
New cards

static

Keyword for class-level members or methods (shared by all instances), as opposed to instance-level.

39
New cards

void

Return type indicating a method does not return a value.