Question
Question 1a Which choice defines the interface I that has required method f? Question 1a options: A public interface I implements f; B public interface
Question 1a
Which choice defines the interface I that has required method f?
Question 1a options:
A | public interface I implements f; |
B | public interface I { public void f( ); } |
C | public interface I requires f; |
D | public interface I {f}; |
Question 1b
Which choice is the first line of a class A that implements the interface I?
Question 1b options:
A | public class A interface I { |
B | public class A implements I { |
C | public interface I for class A { |
D | public class A extends I { |
Question 1c
What is the required method of the Comparable interface?
Question 1c options:
A | ltGt |
B | compareTo |
C | comparator |
D | compare |
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started