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
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
1
Answer:
int [ ]studentId;,
int studentId[ ];,
String [ ] name [ ];:
are correct
Similar questions
English,
1 month ago
Math,
1 month ago
Accountancy,
1 month ago
English,
2 months ago
Computer Science,
2 months ago
Chemistry,
9 months ago