Untitled 3 - Question 1 An array can hold object types....

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
Question 1 An array can hold object types. Question 2 In Java, polymorphic method binding occurs ____________________ Question 3 When there are no references to an object, the object is immediately automatically removed from memory using Java's automatic garbage collection feature. Question 4 __________________ parameters are the values that are used when calling a method. Question 5 Suppose Animal is an interface that specifies a single method – speak. Now suppose the Dog class implements the Animalinterface. In addition to the speak method, the Dog class also has a method called wagTail. Now consider the following code. Animal a = new Dog(); a.wagTail(); Which of the following is true about this code?
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Question 6 A class declared as final _________________________________ . Question 7 Inheritance of interface and inheritance of implementation are both possible in Java using the extends keyword Question 8 In Java subclass can only implement one interface. Question 9
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 7

Untitled 3 - Question 1 An array can hold object types....

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online