Solved

Consider the Following Code Snippet

Question 31

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 and III only
B) III only
C) I only
D) I and II only

Correct Answer:

verifed

Verified

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

Related Questions