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. Assume that a File is an abstract class and has toFile() method. ImageFile and BinaryFile are concrete classes of the abstract class File.

Also, assume that the method toFile() is implemented in both Binary File and Image File. Which implementation method will be called when a File references an ImageFile object in memory and the toFile method is called?

   View Test Answer