Question: Solve Question 1 (1 point) Listen If classes C1 and C2 both implement an interface Cint, which has a method whichIsIt, and if Cl c

Solve

Question 1 (1 point) Listen If classes C1 and C2 both implement an interface Cint, which has a method whichIsIt, and if Cl c = new C1 () ; is performed at one point of the program, then a later instruction c. whichIsIt ( ) ; will invoke the whichIsIt method defined in C1. O True False Question 2 (1 point) ) Listen It is possible to sort an array of int, float, double or String, but not an array of an Object class such as a CD class. True False Question 3 (1 point) Listen swap the 3rd and 4th elements in the int array values, you would do: values [3] = values [4] ; values [4] = values [3] ; True False Question 4 (1 point) ) Listen Java allows one to create polymorphic references using inheritance and using interfaces. O True False Question 5 (1 point) Listen A reference variable can refer to any object created from any class related to it by inheritance. True O False Question 6 (1 point) Listen The fact that the System. out . printIn () method is able to handle such a wide variety of objects, and print them correctly, is an example of the polymorphic nature of the printIn ( ) method. True False

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!