
Interfaces
Quiz
•
Other
•
University
•
Practice Problem
•
Medium
O A
Used 2+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
All methods in an interface are:
private
protected
public abstract
public final
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In Java, interfaces can have:
Static and default methods
Constructors
Private fields
Synchronized methods
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens if two interfaces define a constant int x = 10; and a class implements both?
No problem, it's allowed
Compilation error if accessed without qualification
Runtime error
x will take value from the first interface
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the keyword instanceof check?
Object reference equality
Object memory location
Whether an object is an instance of a class or interface
Whether two classes are the same
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to access a constant from an interface?
x
this.x
InterfaceName.x
new Interface().x
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is true?
You can create an instance of an interface using new
An interface can implement another interface
Interfaces can have private methods
A class can implement multiple interfaces
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Who is the class user in software design?
The one who extends a class
The one who defines methods
The one who calls/uses the class
The one who inherits constants
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
Guess the blackpink song lyrics
Quiz
•
4th Grade - Professio...
8 questions
Introduction to Psychology
Quiz
•
University
10 questions
horses
Quiz
•
KG - Professional Dev...
10 questions
QUIZ 22/4/24
Quiz
•
University
10 questions
PSY2101 Learning
Quiz
•
University
10 questions
Logic Pro X - 101
Quiz
•
2nd Grade - University
10 questions
Devising
Quiz
•
10th Grade - Professi...
10 questions
ANIME!!
Quiz
•
5th Grade - Professio...
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Other
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
5 questions
Poetry Interpretation
Interactive video
•
4th Grade - University
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
15 questions
Review1
Quiz
•
University
15 questions
Pre1
Quiz
•
University
