Senior Developer Java Interview Questions

5,281 senior developer java 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 4861 - 4870 interview questions

Glassdoor has 5,281 interview questions and reports from Senior developer java interviews. Prepare for your interview. Get hired. Love your job.