Array Interview Questions
Top ten most commonly asked interview questions about array will be covered in this lesson in form of a quiz.
1
Choose the right way to initialize an integer array in java:
A)
int a[] = {1,2,3,4,5};
B)
int a[5] = {1,2,3,4,5};
C)
int a[] = new int[5];
D)
Both A and C
Question 1 of 100 attempted
Level up your interview prep. Join Educative to access 80+ hands-on prep courses.