Solved

Consider the Following Code Snippet

Question 28

Multiple Choice

Consider the following code snippet:
Public interface MyInterface<E> { . . . }
Public interface YourInterface<E, T> extends MyInterface<E> { . . . }
Which of these are legal class declarations?
I public class SomeClass implements YourInterface<String, Double> { . . . }
II public class SomeClass implements YourInterface { . . . }
III public class SomeClass implements YourInterface<String> { . . . }


A) I
B) III
C) I and II
D) I and III

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions