Answer the following statements true (T) or false (F)

1) Consider a reference declared in the following manner.
```
Animal a;
```
This reference may only point to an object that created by instantiating the Animal class.
2) Let Animal be an interface. Then it is possible to create an object by instantiating the Animal interface.
3) The compareTo method of the Comparable interface returns a boolean value.
4) Compile-time binding is more efficient than dynamic binding
5) A parameter to a method can be polymorphic.

1) F
2) F
3) F
4) T
5) T

Computer Science & Information Technology

You might also like to view...

If you were creating your own dialog box, which of the following features would be most appropriate to show five different print options?

A) List box B) Spin arrow C) Check box D) Text box

Computer Science & Information Technology

The term __________ refers to a digital signature scheme that involves only the communicating parties.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology