Home / Programming MCQs / JAVA MCQs / Question
P
Q. What will be the output of the following code
import java.util.List; public class ArrayListTest { public static void main(String args[]) { List<String> arrayList=new ArrayList<String>(); arrayList.add(“a”); arrayList.add(“a”); arrayList.clear(); arrayList.add(“b”); arrayList.add(“b”); System.out.println(arrayList.size()); } }
No solution found for this question.
Add Solution and get +2 points.
You must be Logged in to update hint/solution
____ is used to find and fix bugs in the Java programs.
Switch is more efficient than nested if or if - else in java.
How many of the following methods compile?
Which of the following code is used to get an attribute in a HTTP Session object in servlets?
Java support RMI. What does this RMI stands for?
What is the problem with generation Executable Software (EXE files)?
Discusssion
Login to discuss.