Object-Oriented Programming: Polymorphism and Interfaces

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

1/20

flashcard set

Earn XP

Description and Tags

Definition flashcards covering Java polymorphism, abstract and concrete classes, final keywords, interfaces (including Java SE 8 and 9 enhancements), and UML conventions.

Last updated 2:25 AM on 5/9/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

21 Terms

1
New cards

Polymorphism

A capability that enables you to program "in the general" and allows specifics to be dealt with during execution.

2
New cards

Abstract Class

A class that cannot be instantiated and is denoted in UML convention by italics.

3
New cards

Concrete Classes

Non-abstract classes that can be instantiated to create objects.

4
New cards

Interface Inheritance

A type of inheritance that occurs when a superclass contains only abstract method declarations.

5
New cards

publicabstractintmethod1();public abstract int method1();

The correct syntax to declare an abstract method named method1method1 that returns an intint and takes no arguments.

6
New cards

Late Binding

Also called dynamic binding, this is the process of determining the correct method implementation to call at execution time when a superclass variable refers to a subclass object.

7
New cards

getClassgetClass

The method that every object in Java can use to access information about its own class.

8
New cards

finalfinal Method

A method that cannot be overridden; declaring methods as such can improve performance and allow inlining of code.

9
New cards

finalfinal Class

A class that cannot be inherited from, preventing further inheritance.

10
New cards

Interface (Java SE 7 and earlier)

A reference type that can contain only publicstaticfinalpublic\,static\,final data and publicabstractpublic\,abstract methods; it cannot be instantiated.

11
New cards

Guillemets

The UML convention (e.g., <>) used to distinguish an interface from other classes by placing the word "interface" inside them above the interface name.

12
New cards

implementsimplements

The keyword used to specify that a class will define the methods of an interface.

13
New cards

SerializableSerializable

An interface used to identify classes whose objects can be written to or read from storage or transmitted across a network.

14
New cards

AutoCloseableAutoCloseable

An interface specifically intended to be implemented by classes used with the try-with-resources statement.

15
New cards

Default Interface Methods

Introduced in Java SE 8, these are public methods with concrete implementations in an interface that do not break existing classes that implement the interface.

16
New cards

Static Interface Methods

A Java SE 8 enhancement that allows helper methods to be declared directly in interfaces rather than in separate classes like CollectionsCollections.

17
New cards

Functional Interface

As of Java SE 8, any interface containing only one (abstract) method; used extensively with lambda capabilities.

18
New cards

Lambda Expressions

A feature in Java SE 8 that provides a shorthand notation for creating anonymous methods.

19
New cards

Private Interface Methods

Introduced in Java SE 9, these allow the declaration of helper methods (instance or static) within an interface.

20
New cards

Factory Method

A publicstaticpublic\,static method that creates and initializes an object of a specified type and returns a reference to it, often used when constructors are private.

21
New cards

Loose Coupling

A characteristic of classes declared with interface inheritance, as opposed to the tight coupling associated with implementation inheritance.