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

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

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