'0' Try this: public static void main(String[] args){ } The output would be 0 even though you did not initialize any value in the int array.
4th
Numeric array has numbers(+integers) that represent the values Associative array has strings that represent the values
An array of numbers is used in mathematical problems.
matrix
Yes: int[] integerArray;
I'm not sure what you're asking. Do you mean when you declare/instantiate an array like this? int[][] arr; arr = {{1, 2, 3},{4, 5, 6}}; I think that's right. *********************************** THIS IS INCORRECT because you can assign constant values to array only at time of initialization. Therefore above code will throw an error. Correct way is: int[][] arr = {{1, 2, 3},{4, 5, 6}}; thanx .. itsabhinav123@gmail.com
One can get information about how to initialize a byte array in java on the website stackoverflow dot com. That website can learn one a lot about java.
To declare an array of buttons in Java, you would use the following syntax: Button[] buttonArray = new Button[n]; where n is the number of buttons you want in the array. This creates an array of n buttons, where each element can hold a reference to a Button object.
in dynamic stack we don't have to initialize the size of array while in static stack we have 2 initialize it ......
int myArray[] = {1,2,3,4,5};
Initialize and remove dead segments
your wish
once we initialize the array variable, the pointer points base address only & it's fixed and constant pointer
'0' Try this: public static void main(String[] args){ } The output would be 0 even though you did not initialize any value in the int array.
A Jagged array is an array of arrays. You can initialize a jagged array as − int[][] scores = new int[2][]{new int[]{92,93,94},new int[]{85,66,87,88}}; Where, scores is an array of two arrays of integers - scores[0] is an array of 3 integers and scores[1] is an array of 4 integers.
When we declare an array of characters it has to be terminated by the NULL , but termination by NULL in case of string is automatic.