Java array face questions ask. 5 Which of the following array definitions is wrong.
and add a single-line comment to the wrong answer and write the reason for the error.
A,float[]=new Float[3];
B, float f2[]=new float[];
C, float[] f1=new float[3];.
D, boolean[] b={"true", "false", "true"};.
E, double f4[]={1,3,5};
F, int f5[]=new int[3]{2,3,4};
G, float f4[]={1.2,3.0,5.4}; Collect 188****0365 | Browse 415 times I have a better answer. Recommended for 2016-05-27 13:18:32 best Answer
A variable name not defined
B Uninitialized Array length
C if the back of the full horn. " "If you don't count, you're right.
D if the back of the full horn. " "No, the type is wrong, True/false is quoted as String, not Boolean.
E to
F array definition cannot initialize length and value at the same time
G type is not correct, float type to add F, such as 1f,2.3f