Multiple Choice
What is the output of the following code snippet? ArrayList<Integer> num;
Num) add(4) ;
System.out.println(num.size() ) ;
A) 1
B) 0
C) 4
D) Error because num is not initialized
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q17: How many elements can be stored in
Q49: In a partially filled array, the number
Q50: What is the value of myArray[1][2] after
Q51: The binary search is faster than the
Q52: Assume the variable numbers has been declared
Q53: Consider the following code snippet, where the
Q54: Why is the following method header invalid?
Q55: Assume the following variable has been declared
Q56: Assume the array of integers values has
Q91: If a programmer confuses the method required