❑ int [ ] a;
❑ int a[ ];
❑ array int a;
❑ int array a;
int []a and int a[]
❑ –1
❑ 0
❑ 1
0
❑ 29
❑ 30
❑ 31
29
❑ 0
❑ null
❑ undefined
0
❑ a{6}
❑ a( 6 )
❑ a[6]
a [6]
❑ An array cannot be sized dynamically.
❑ An array can be sized dynamically, but cannot be resized without instantiating it again.
❑ An array can be sized dynamically and can also be resized without instantiating it again.
An array can be sized dynamically, but cannot be resized without instantiating it again
❑ a . length( )
❑ a . length
❑ a . size( )
❑ a . size
a.length
❑ true
❑ false
true
❑ true
❑ false
false
❑ true
❑ false
false
(Explanation:
• Aggregate comparison operation is not allowed in java to compare each individual elements one array with other.
• To compare elements from one array to another array must be done with comparison operators (, <=,>=, ==, ! =)
• For example, int a[]={1,2,3,4,5};
• int b[]={1,2,3,4,5};
• a==b is incorrect comparison to check if two array contains same elements.
• Therefore, aggregate comparison is possible in java is incorrect statement.)
❑ true
❑ false
true
❑ true
❑ false
false
(Explanation: