Solved

Consider the Following Code Snippet: ArrayList<Double> Somedata = New ArrayList<Double>();

Question 20

Multiple Choice

Consider the following code snippet: ArrayList<Double> somedata = new ArrayList<Double>() ;
Somedata.add(10.5) ;
What is the size of the array list somedata after the given code snippet is executed?


A) 0
B) 1
C) 10
D) 2

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions