Solved

Consider Our Own Generic Class MyLinkedList Shown Below

Question 25

Multiple Choice

Consider our own generic class MyLinkedList shown below.It has a private Node class, and it implements the standard Java ListIterator generic interface.
public class MyLinkedList<E>
{
private MyNode first;
...
private class MyNode
{
private E data;
private MyNode next;
}
private class MyIterator implements ListIterator<E>
{
...
}
}
Which of the following statements apply?
i.the code is correct
II.change to private class MyIterator implements ListIterator
III.change to private class MyNode<E>


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

Correct Answer:

verifed

Verified

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

Related Questions