Java Programming
Accenture PrimermediumJava Programming04 Arrays And Strings

Partially List the correct ways of declaring an Array.

Answer options

A
int studentId[10];
B
String [ ] name [ ];
C
int studentId[ ];
D
String name[]=new String(10);
E
int [ ]studentId;

Correct answer: String [ ] name [ ];, int studentId[ ];, int [ ]studentId;

Explanation

Correct answer: String [ ] name [ ];; int studentId[ ];; int [ ]studentId;.

Related Accenture Java Programming questions

Practice more Accenture Java Programming questions

PrimerDumps has 1400+ primer questions, 2026 mocks and coding hands-on — all free.