Q12)
What will be the output of the following program?
inport java.util.
public class Demo
public static void main(String args[]) {
LinkedList<String> al=new LinkedList<String>0;
al.add("Tom");
aladd("Alice");
al.add("Tom");
aladd("Bob"):
Iterator String> itr=al. iterator();
while itr hasNext()
System.out.println(itr next()):
3
a Tom
Alice
Tom
Bob
b. Bob
Tom
Alice
Tom
c. Compilation error
d Runtime error
Answers
Answered by
0
Answer:
Compilation Error
Explanation:
14 error are there
Answered by
0
Answer:
14 error occurred. c. compilation error.
Explanation:
pls pls mark as brainliest pls pls and pls follow me pls
Similar questions