Java Fundamentals: Objects, Methods, and Data Types

0.0(0)
Studied by 0 people
0%Unit 1 Mastery
0%Exam Mastery
Build your Mastery score
multiple choiceMultiple Choice
call kaiCall Kai
Supplemental Materials
Card Sorting

1/48

Last updated 8:17 PM on 3/4/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

49 Terms

1
New cards

Object-Oriented Programming (OOP)

A programming paradigm that uses 'objects' to represent data and methods to work with that data.

2
New cards

Class

The blueprint or template that defines the properties and methods of an object.

3
New cards

Object (Instance)

A specific realization of a class that takes up memory in the heap.

4
New cards

new keyword

Used in Java to create a new instance of a class.

5
New cards

Constructor

A method used to initialize an object.

6
New cards

Primitive Data Types

Basic data types in Java, such as int, double, and boolean.

7
New cards

int

A primitive data type used to represent integers.

8
New cards

double

A primitive data type used for floating-point numbers.

9
New cards

boolean

A primitive data type that can hold only true or false values.

10
New cards

Reference Data Types

Data types that hold references to objects rather than actual values.

11
New cards

Wrapper Classes

Classes that allow primitive data types to be treated as objects.

12
New cards

Autoboxing

The automatic conversion of a primitive type into its corresponding wrapper class.

13
New cards

Unboxing

The automatic conversion of a wrapper class object into its corresponding primitive type.

14
New cards

Method

A block of code that performs a specific task and can be called upon.

15
New cards

Void Method

A method that does not return a value.

16
New cards

Return Method

A method that returns a value after execution.

17
New cards

Method Overloading

Defining multiple methods with the same name but different parameter lists.

18
New cards

String

A sequence of characters that is a reference type in Java.

19
New cards

Immutable

A property of an object that cannot be modified after it is created.

20
New cards

Concatenation

The operation of joining two strings together using the + operator.

21
New cards

length()

A method that returns the number of characters in a string.

22
New cards

substring(int from, int to)

A method that returns a substring from index 'from' to index 'to'.

23
New cards

indexOf(String str)

A method that returns the index of the first occurrence of a specified string within another string.

24
New cards

equals(Object other)

A method that checks if two strings have the same content.

25
New cards

Math Class

A class in Java that contains static methods for performing mathematical operations.

26
New cards

Math.abs(x)

Returns the absolute value of x.

27
New cards

Math.pow(base, exponent)

Returns the value of base raised to the power of exponent.

28
New cards

Math.sqrt(x)

Returns the square root of x.

29
New cards

Math.random()

Returns a random double value between 0.0 and 1.0.

30
New cards

Generating Random Integers Formula

(int)(Math.random() * range) + min, where range is (max - min + 1).

31
New cards

Integer Division

The division of two integers that truncates any decimal part.

32
New cards

String Comparison

The act of comparing two string values using .equals() instead of ==.

33
New cards

NullPointerException

Runtime error that occurs when trying to access an object that is null.

34
New cards

Casting in Java

The conversion of one data type into another.

35
New cards

Reference Variable

A variable that holds the memory address of an object.

36
New cards

Rectangle

A class example used to illustrate how to create objects in Java.

37
New cards

Scanner

A class in Java used for reading input from various sources.

38
New cards

Random

A class in Java used for generating random numbers.

39
New cards

String Methods

Functions available for string manipulation in Java.

40
New cards

Memory Address

The location in memory where an object is stored.

41
New cards

State

The data contained within an object.

42
New cards

Behavior

The methods that define what operations can be performed on an object.

43
New cards

Logical Hierarchy

An organizational structure that represents relationships in class and object definitions.

44
New cards

Assignment Operator ( = )

Used to assign values to variables.

45
New cards

Parameters

The values that are passed to a method when it is called.

46
New cards

Index Out of Bounds

Error that occurs when accessing an index that is outside the valid range of a string.

47
New cards

Compilation Error

Error that occurs during the compilation of code due to syntax or type issues.

48
New cards

Immutable String

A string that cannot be altered once it is created.

49
New cards

Comparative Method

A method that compares objects based on predefined criteria.

Explore top notes

note
1984 - Introduction Notes
Updated 1723d ago
0.0(0)
note
geologic absolute age notes
Updated 1760d ago
0.0(0)
note
123
Updated 841d ago
0.0(0)
note
Hello
Updated 1187d ago
0.0(0)
note
Chapter 1 - The Earth (copy)
Updated 1432d ago
0.0(0)
note
Factorisation (copy)
Updated 1073d ago
0.0(0)
note
KOREAN - IMPORTANT VOCABULARY
Updated 1254d ago
0.0(0)
note
1984 - Introduction Notes
Updated 1723d ago
0.0(0)
note
geologic absolute age notes
Updated 1760d ago
0.0(0)
note
123
Updated 841d ago
0.0(0)
note
Hello
Updated 1187d ago
0.0(0)
note
Chapter 1 - The Earth (copy)
Updated 1432d ago
0.0(0)
note
Factorisation (copy)
Updated 1073d ago
0.0(0)
note
KOREAN - IMPORTANT VOCABULARY
Updated 1254d ago
0.0(0)

Explore top flashcards

flashcards
faf
40
Updated 957d ago
0.0(0)
flashcards
faf
40
Updated 957d ago
0.0(0)