Search the courses, subjects, tracks, games and features, or jump straight to a page.
3 cards from this section. Quick, good the night before a test.
What is an interface in Java?
Think about what methods are defined but not completed in an interface.
Can a class implement multiple interfaces?
Consider the flexibility interfaces provide.
What is true about interfaces in Java?
Think about the purpose of defining interfaces.
True or False: A class can implement multiple interfaces in Java.
Recall the benefits of using interfaces.
Create a Java interface named Employee, specifying methods for getting employees' details and programming roles. Then implement this interface in a class named SoftwareEngineer.
Think about what kind of details an employee might have.
Discuss how you would design an interface for a generic logging mechanism that different classes can implement. Consider which methods are essential.
Consider logging types you often use in applications.
6 more questions in this section. Enroll free to practise them all.
Enroll free