Multiple Choice
Which statement is true about the code snippet below? ArrayList<String> names = new ArrayList<String>() ;
Names.add("John") ;
Names.add("Jerry") ;
ArrayList<String> friends = names;
Friends.add("Harry") ;
A) The final size of names is 2; the final size of friends is 3
B) The final size of names is 3; the final size of friends is 2
C) The final size of names is 3; the final size of friends is 3
D) Compilation error
Correct Answer:

Verified
Correct Answer:
Verified
Q86: Consider the following code snippet:<br>Int[][] numarray =<br>{<br>{
Q87: Assume the following variable has been declared
Q88: Which one of the following statements is
Q90: Consider the following code snippet: ArrayList<Integer> arrList
Q92: Which one of the following code snippets
Q93: Which code snippet prints out the elements
Q94: What will be printed by the statements
Q95: Assume the method doSomething has been defined
Q96: Consider the following code snippet: public static
Q102: Java 7 introduced enhanced syntax for declaring