Home / Programming MCQs / JAVA MCQs / Question
P
Q. What will be the output of the following code
import java.util.ArrayList; 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”); arrayList.add(“c”); System.out.println(); arrayList.add(1,”d”); System.out.println(arrayList); } }
No solution found for this question.
Add Solution and get +2 points.
You must be Logged in to update hint/solution
Which is used to separate the hierarchy of the class while declaring an import statement?
Which of the following are not the wrapper classes?
What is the output of this program?
When is a finally {} block executed?
What is the output of a Logical AND (&) operation if both inputs/operands are true?
Which component is used to compile, debug and execute the java programs?
What was the reason for huge initial success of Java?
Discusssion
Login to discuss.