Computer Science, asked by kadamsidharth8, 7 months ago

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 asitpaul2015ap
0

Answer:

Compilation Error

Explanation:

14 error are there

Answered by prithwizlatan
0

Answer:

14 error occurred. c. compilation error.

Explanation:

pls pls mark as brainliest pls pls and pls follow me pls

Similar questions