Which two are valid instantiations and initializations of a multi dimensional array?

Which two are valid instantiations and initializations of a multi dimensional array?

Which two are valid instantiations and initializations of a multi dimensional array?

A.
Option A

B.
Option B

C.
Option C

D.
Option D

E.
Option E



Leave a Reply 3

Your email address will not be published. Required fields are marked *


Sanket Patel

Sanket Patel

Hey…

I think the answer would be A and D!!

Can you explain me why it is B and why it cannot be A ?

Regards,
Sanket Patel

bob

bob

A simple check in any Java compiler / IDE shows that the actual correct answers are A and D, you are correct Sankel Patel.