Java 103

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

1/17

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

18 Terms

1
New cards

Encapsulation

The process of making data private and accessing it through getter and setter methods.

2
New cards

Setter Method

A method that allows for setting a value of a property; can have multiple parameters but typically advised against.

3
New cards

Getter Method

A method that returns the private data it accesses.

4
New cards

Inheritance

The mechanism to create a new class using an existing class, denoted with the 'extends' keyword.

5
New cards

super

A keyword used to call the parent class constructor and methods from the child class.

6
New cards

Constructor Invocation

When a child class constructor explicitly calls the parent class constructor using 'super'.

7
New cards

Parameterized Constructor

A constructor that requires parameters to create an object; must be invoked explicitly when only parameterized constructors exist in the parent class.

8
New cards

Dynamic Method Calling

Achieved through method overriding and using a superclass reference variable.

9
New cards

Preventing Method Overriding

Use final methods or static methods to restrict changes in method implementations.

10
New cards

Type Casting

The conversion of a variable from one data type to another.

11
New cards

Upcasting

Using a superclass reference for a child class object.

12
New cards

Downcasting

Converting a superclass reference back to a child class reference.

13
New cards

Preventing Inheritance

Making a class final or using certain classes like String and Math which cannot be inherited.

14
New cards

Abstract Class

A class that cannot be instantiated and may contain abstract methods that need to be overridden.

15
New cards

Interface

A conceptual entity that acts like a class but cannot be instantiated; used to define methods that must be implemented.

16
New cards

Interface Members

Attributes in interfaces are public, static, and final by default; methods are abstract unless defined as default or static.

17
New cards

Default Method

An instance method in an interface that provides a default implementation.

18
New cards

Static Method

A method that belongs to the class rather than instances of the class and can be called without creating an instance.