Where are the following const size arrays allocated in Java (heap/stack)?
float[] arr = new float[3];
float[] arr = {0,0,0};
Note, that the new keyword is not used on the second line.
Where are the following const size arrays allocated in Java (heap/stack)?
float[] arr = new float[3];
float[] arr = {0,0,0};
Note, that the new keyword is not used on the second line.