Solved

Consider the Following Code Snippet

Question 74

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

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents