1. What is the result of executing the following code?
int[] sampleArray;
sampleArray[0] = 21;
sampleArray[1] = 22;
sampleArray[2] = 23;
for (int index = 0; index <>
System.out.print(sampleArray[index] + ", ");
2. Write a Java statement to declare an array of 25 BankAccount objects.
3. Define a static method to return the average of the floating-point numbers in a given array.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here