Untitled Flashcards Set

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/41

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 2:50 AM on 3/4/25
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

42 Terms

1
New cards
clone()
Creates and returns a copy of this object (protected method return: Object).
2
New cards
equals(Object obj)
Indicates whether some other object is 'equal to' this one (return: boolean).
3
New cards
hashCode()
Returns a hash code value for the object (return: int).
4
New cards
toString()
Returns a string representation of the object (return: String).
5
New cards
Class
A class defines a type and is used to define what all objects of that class know and can do.
6
New cards
Compiler
Software that translates the Java source code (ends in .java) into the Java class file (ends in .class).
7
New cards
Compile time error
An error that is found during the compilation, also known as a syntax error.
8
New cards
Constructor
Used to initialize fields in a newly created object.
9
New cards
Field
A field holds data or a property—what an object knows or keeps track of.
10
New cards
Java
A programming language that you can use to tell a computer what to do.
11
New cards
Main Method
Where execution starts in a Java program.
12
New cards
Method
Defines behavior—what an object can do.
13
New cards
Object
An instance of a class with defined attributes. Objects are declared as variables of a class type.
14
New cards
Syntax Error
An error in the specification of the program.
15
New cards
Instance Variable
Variables that belong to an object (instance of a class).
16
New cards
Local Variables
Variables that are declared inside of methods and constructors, only accessible within those blocks.
17
New cards
Constructors
Initialize the attributes in newly created objects—they have the same name as the class.
18
New cards
Signatures
The unique combination of both name and formal parameters for a method or constructor.
19
New cards
Modifiers
Modifiers (e.g., public, private, protected, final, static) define the behavior, accessibility, and scope of classes, methods, and variables.
20
New cards
Overloading
When there is more than one constructor, differing in the number, type, or order of parameters.
21
New cards
Overriding
Occurs when a subclass implements a method already defined in the superclass.
22
New cards
Default constructor
A constructor that doesn’t take any parameters.
23
New cards
Parameters
Allow values to be passed to the constructor to initialize newly created object’s attributes.
24
New cards
Parameter list
A list of the type of the value being passed and a variable name in the header of a constructor or method.
25
New cards
Actual parameters
The values being passed to a constructor or method.
26
New cards
Formal parameters
Specified variables in the header of a constructor/method that act as placeholders for actual parameters.
27
New cards
Call by value
When you pass a value, it passes a copy of the value of the actual parameters.
28
New cards
Dot operator
Used to access member methods and variables of a class or an instance of that class.
29
New cards
Procedural abstraction
Allows a programmer to use a method by knowing in general what it does without knowing how it does it.
30
New cards
NullPointerException
Occurs if you try to call an object method on an object variable whose value is null.
31
New cards
Object method
A non-static method belonging to an object or a particular instance of the class.
32
New cards
Static method
Belongs to the class and not to a particular instance of the class.
33
New cards
Data encapsulation
Where the data and the code acting on the data are wrapped together into a single unit.
34
New cards
Getters/Setters
Public methods in a class used to return or set private instance/class variables.
35
New cards
class
The class keyword is used to define a new class.
36
New cards
public
A visibility keyword that allows direct access from any class.
37
New cards
private
A visibility keyword that restricts access to only the current class.
38
New cards
new
A keyword used to create a new object of a class.
39
New cards
static
Designates that a class member belongs to the class and not a single object.
40
New cards
final
Indicates that a variable, method, or class cannot be modified or extended.
41
New cards
return
The keyword that finishes the execution of a method and can return a value.
42
New cards
void
Specifies that a method should not have a return value.