CMSC 22 Second Long Exam Reviewer

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

1/4

encourage image

There's no tags or description

Looks like no tags are added yet.

5 Terms

1
New cards

Java Interface

It is a reference type that can contain only constants, method signatures, default methods, static methods, and nested types.

2
New cards

Java Interface

It is used to achieve abstraction and multiple inheritance in Java, defining a contract that implementing classes must fulfill.

3
New cards

Interface

This keyword is used to declare an interface in java.

4
New cards

Syntax test

public interface Expandable{ // use keyword interface instead of class

int EXPANSION_COST = 300; // public final static attribute

boolean expand(); // public abstract method/s

}

5
New cards