Java online test, online practice test, exam, quiz

Java Online Test

The purpose of this online test is to help you evaluate your Java knowledge yourself. These Multiple Choice Questions (MCQs) on Java will prepare you for technical round of job interview, written test and many certification exams.

The test contains 39 questions and there is no time limit. You will get 1 point for each correct answer. You will get your online test score after finishing the complete test.
(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 Test Answer
Advertisement