Java Senior Interview Questions

6,015 java senior interview questions shared by candidates

Which of the following statements are not correct? (Select one) If an import statement is present, it must appear before any class or interface definitions. A Java file without any class or interface definitions can also be compiled. A Java program must have a package statement. A package statement if present must be the first statement of the program. An empty file is not a valid source file.
avatar

Senior Java Developer

Interviewed at Grid Dynamics

3.7
May 15, 2015

Which of the following statements are not correct? (Select one) If an import statement is present, it must appear before any class or interface definitions. A Java file without any class or interface definitions can also be compiled. A Java program must have a package statement. A package statement if present must be the first statement of the program. An empty file is not a valid source file.

Viewing 5541 - 5550 interview questions

Glassdoor has 6,015 interview questions and reports from Java senior interviews. Prepare for your interview. Get hired. Love your job.