Solved

Consider the Following Code Snippet

Question 100

Multiple Choice

Consider the following code snippet. Which statement should be used to fill in the empty line so that provides the output will be [32, 54, 67.5, 29, 35]?
public static void main(String[] args)
{
double data[] = {32, 54, 67.5, 29, 35};
______________
System.out.println(str) ;
}


A) String str = Arrays.format(data) ;
B) String str = data.toString() ;
C) String str = Arrays.toString(data) ;
D) String str = str + ", " + data[i];

Correct Answer:

verifed

Verified

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

Related Questions