Is this is the valid declaration of the array in Java.
int arr_name[][] = new int[][] {
new int[] {10, 20, 30 ,40};
new int[] {50, 60, 70, 80, 90, 100};
new int[] {110, 120};
};
True
False
Answers
Answered by
1
Explanation:
False
Please mark me as brainlist
Answered by
0
False
int arr_name[][] = new int[][] {
new int[] {10, 20, 30 ,40};
new int[] {50, 60, 70, 80, 90, 100};
new int[] {110, 120};
};
- All of the following Java array declarations are legitimate: String[] stringArray; Integer[] intArray; String[] stringArray; MyClass myClassArray, MyClass myClass;
- In C++, an array is often declared as type name [elements], where type is a valid type (such int or float), name is a valid identifier, and elements, which is usually wrapped in square brackets [], determines the array's size.
- Capital letters A–Z, lowercase letters a–z, numerals 0–9, and two special characters, such as the underscore (_) and dollar sign ($), can all be used in a variable name. No digits are permitted as the initial character. Variable names cannot contain blank spaces. The names of variables cannot contain Java keywords.
#SPJ2
Similar questions