Java Quiz Exam Oriented
Question 1: It is possible to have two methods in the same class that have the same name, the same number and types of arguments, but different return types.
Select one:
True
False
Question 2: The finally block is executed when an exception is thrown, even if no catch matches it.
Select one:
True
False
Question 3: finalize() is a predefinedmethod
Select one:
True
False
Question 4: An interface can inherit from multiple interface.
Select one:
True
False
Question 5: The subclass exception should precede the base class exception when used within the catch block.
Select one:
True
False
Question 6: package statement must be first statement in java program.
Select one:
True
False
Question 7: sleep(int k) method throws checked exception.
Select one:
True
False
Question 8: we can create an array with zero size.
Select one:
True
False
Java Quiz Question and Answers - Part 7