Java Basics  «Prev  Next»

Java Interfaces - Quiz

Each question is worth one point.Select the best answer for each question.
 
1. All methods in an interface are
Please select the best answer.
  A. Final, unable to be overridden
  B. Class methods
  C. Abstract

2. All variables in an interface are
Please select the best answer.
  A. Static and final (that is, class variables and constants)
  B. Abstract instance variables
  C. Constant instance variables

3. A class named Primes implementing an interface named Runnable could be defined like this
Please select the best answer.
  A. class Primes extends Runnable...
  B. class Primes implements Runnable...
  C. interface Primes implements Runnable...
Your score is 0.0
C
A
B