Java Interfaces: Definition & Examples

Instructions:

Choose an answer and hit 'next'. You will receive your score and answers at the end.

question 1 of 3

In order to use an interface in a class, the _____ keyword is required.

Create Your Account To Take This Quiz

As a member, you'll also get unlimited access to over 79,000 lessons in math, English, science, history, and more. Plus, get practice tests, quizzes, and personalized coaching to help you succeed.

Try it risk-free
Try it risk-free for 30 days. Cancel anytime
Already registered? Log in here for access

1. Which code snipped shows the correct way to use the methods from Orders in the class OrderType?

2. Using interfaces in Java can help achieve _____ which is not technically allowed in the core language

Create your account to access this entire worksheet
A Premium account gives you access to all lesson, practice exams, quizzes & worksheets
Access to all video lessons
Quizzes, practice exams & worksheets
Certificate of Completion
Access to instructors
Create an account to get started Create Account

About This Quiz & Worksheet

This set of quiz and worksheet questions will quickly measure your knowledge of the use of interfaces in Java. You will need to identify correct examples of Java code using this concept.

Quiz & Worksheet Goals

In this quiz combo you'll assess your understanding of concepts like:

  • Using interfaces in a class
  • Ways interfaces can be used to achieve previously unattainable results in Java
  • Java syntax and terminology

Skills Practiced

  • Reading comprehension - ensure that you draw the most important information from the lesson, such as what keyword you would use to access a class via an interface
  • Problem solving - use acquired knowledge to recognize what will happen when a given piece of code is run in Java
  • Knowledge application - use your knowledge of Java syntax and language to identify the correct piece of code for a given task

Additional Learning

If you would like to learn more about this aspect of the Java programming language, review the lesson titled Java Interfaces: Definition & Examples. It will help explain things like:

  • Graphical representations of Java code
  • Step-by-step instructions for using interfaces
  • Use of the extends keyword
Support