Вы находитесь на странице: 1из 1

http://ilearning.oracle.com/ilearn/en/assessment/jsp/test_player.

jsp

Test: Java Fundamentals Final Exam


Review your answers, feedback, and question scores below. An asterisk (*) indicates a correct answer.
Section 7
(Answer all questions in this section)
36.It is possible to overload a method that is not a constructor. True or False? Mark for Review
(1) Points
True (*)
False

Correct
37.Identify the error(s) in the class below. Choose all that apply Mark for Review
(1) Points

Two methods cannot have the same name.


Final cannot be used as an access modifier.
No method named min is defined. (*)
The parameters must be the same for all methods with the same name.
Private cannot be used as an access modifier.

Incorrect. Refer to Section 7 Lesson 2.


38.It is possible to have more than one constructor with the same name in a class, but they must have different Mark for Review
parameters. True or false? (1) Points
True (*)
False

Correct
39.If the return type from a method is boolean then 2.5 is a valid return value. True or false? Mark for Review
(1) Points
True
False (*)

Incorrect. Refer to Section 7 Lesson 1.


40.The following code creates an object of type Horse: Mark for Review
Whale a=new Whale(); (1) Points
True
False (*)

Incorrect. Refer to Section 7 Lesson 1.

Previous Page 8 of 10 Next Summary

1 dari 1 28/10/2016 21:48

Вам также может понравиться