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 = new ArrayList<String>(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
Q10: Which one of the following statements is
Q41: Suppose you wish to process an array
Q77: Which code snippet calculates the sum of
Q78: What is the value of the count
Q79: Which statements about array algorithms are true?<br>I.
Q80: Consider the following line of code:<br>Int[] somearray
Q83: Which one of the following is the
Q84: What is the output of the following
Q85: Consider the following code snippet:<br>Int[][] arr =<br>{<br>{
Q86: Consider the following code snippet:<br>Int[][] numarray =<br>{<br>{