Java Programming
Accenture Technical 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

Quick AnswerThe correct answer is String [ ] name [ ];, int studentId[ ];, int [ ]studentId; because it directly addresses the core logic of Java Programming.

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

Related Accenture Java Programming questions

Practice more Accenture Java Programming questions

PrimerPrep has 1400+ practice questions, 2026 simulations and coding hands-on — all free.

Watch Walkthroughs!