Solved

Consider Our Own Generic Class MyLinkedList Shown Below

Question 28

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

Correct Answer:

verifed

Verified

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

Related Questions