Computer Science, asked by safrinists, 7 hours ago

List the correct ways of declaring an Array.

Select one or more:

int [ ]studentId;

int studentId[ ];

int studentId[10];

String [ ] name [ ];

String name[]=new String(10);  ​

Answers

Answered by yashsaxena8055
0

Answer:

correct ways

int studentId[10]; // in C language

int studentId[ ]; // in Java

Incorrect ways

String name[]=new String(10);  

this is incorrect

String name[]=new String[10];

this is correct

Answered by aniketsingh0305
1

Answer:

int [ ]studentId;,

int studentId[ ];,

String [ ] name [ ];:

are correct

Similar questions