Java online test, online practice test, exam, quiz

Online Practice Test > Java        (Total 39 questions)        (Time spent 0:0)

1. Given the following code snippet;

int salaries[];
int index = 0;
salaries = new int[4];
while (index < 4)
{
salaries[index] = 10000;
index++;
}
What is the value of salaries [3]?




   View Answer and Discussion
Advertisement