Home / Programming MCQs / JAVA MCQs / Question
T
Q. What will be the output of given code
import java.util.ArrayList; import java.util. Iterator; import java.util. List; public class ArrayListTest { public static void main (String args[]) { List<String> arrayList = new ArrayList<String>(); arrayList.add(“a”); arrayList.add(“b”); Iterator<String> iterator = arrayList.iterator(); while (iterator.hasNext()) { System.out.println(iterator.next()); arrayList.add(“c”); } } }
No solution found for this question.
Add Solution and get +2 points.
You must be Logged in to update hint/solution
The object is created with new keyword
Choose the correct syntax of the WHILE loop in Java below.
Which coding types is used for data type characters in Java
What is the output of this program?
Servlets handle multiple simultaneous requests by using threads.
Which of these packages contains the exception Stack Overflow in Java?
Java Ternary operator is sometimes called ____.
What are the types of Integer Literals in Java?
Discusssion
Login to discuss.