Java Programming
Accenture PrimermediumJava Programming4. Arrays And Strings

List the correct ways of declaring an Array.

Answer options

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

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

Explanation

Correct answer: int [ ]studentId;; String [ ] name [ ];; 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.